Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6fd3640

Browse files
committedOct 8, 2024·
Fix invalid FileCheck directives in small_data_threshold.rs
FileCheck uses `//` prefixes but the test used `//@` compiletest prefixes.
1 parent 18e6145 commit 6fd3640

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed
 

‎tests/assembly/small_data_threshold.rs

+41-41
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
//@ revisions: RISCV MIPS HEXAGON M68K
33
//@ assembly-output: emit-asm
44
//@ compile-flags: -Z small_data_threshold=4
5-
//@ [RISCV] compile-flags: --target=riscv32im-unknown-none-elf
6-
//@ [RISCV] needs-llvm-components: riscv
7-
//@ [MIPS] compile-flags: --target=mips-unknown-linux-uclibc -C relocation-model=static
8-
//@ [MIPS] compile-flags: -C llvm-args=-mgpopt -C llvm-args=-mlocal-sdata
9-
//@ [MIPS] compile-flags: -C target-feature=+noabicalls
10-
//@ [MIPS] needs-llvm-components: mips
11-
//@ [HEXAGON] compile-flags: --target=hexagon-unknown-linux-musl -C target-feature=+small-data
12-
//@ [HEXAGON] compile-flags: -C llvm-args=--hexagon-statics-in-small-data
13-
//@ [HEXAGON] needs-llvm-components: hexagon
14-
//@ [M68K] compile-flags: --target=m68k-unknown-linux-gnu
15-
//@ [M68K] needs-llvm-components: m68k
5+
//@[RISCV] compile-flags: --target=riscv32im-unknown-none-elf
6+
//@[RISCV] needs-llvm-components: riscv
7+
//@[MIPS] compile-flags: --target=mips-unknown-linux-uclibc -C relocation-model=static
8+
//@[MIPS] compile-flags: -C llvm-args=-mgpopt -C llvm-args=-mlocal-sdata
9+
//@[MIPS] compile-flags: -C target-feature=+noabicalls
10+
//@[MIPS] needs-llvm-components: mips
11+
//@[HEXAGON] compile-flags: --target=hexagon-unknown-linux-musl -C target-feature=+small-data
12+
//@[HEXAGON] compile-flags: -C llvm-args=--hexagon-statics-in-small-data
13+
//@[HEXAGON] needs-llvm-components: hexagon
14+
//@[M68K] compile-flags: --target=m68k-unknown-linux-gnu
15+
//@[M68K] needs-llvm-components: m68k
1616

1717
#![feature(no_core, lang_items)]
1818
#![no_std]
@@ -58,35 +58,35 @@ static mut Z: u64 = 0;
5858
// Currently, only MIPS and RISCV successfully put any objects in the small data
5959
// sections so the U/V/W/X tests are skipped on Hexagon and M68K
6060

61-
//@ RISCV: .section .sdata
62-
//@ RISCV-NOT: .section
63-
//@ RISCV: U:
64-
//@ RISCV: .section .sbss
65-
//@ RISCV-NOT: .section
66-
//@ RISCV: V:
67-
//@ RISCV: .section .sdata
68-
//@ RISCV-NOT: .section
69-
//@ RISCV: W:
70-
//@ RISCV: .section .sbss
71-
//@ RISCV-NOT: .section
72-
//@ RISCV: X:
61+
// RISCV: .section .sdata
62+
// RISCV-NOT: .section
63+
// RISCV: U:
64+
// RISCV: .section .sbss
65+
// RISCV-NOT: .section
66+
// RISCV: V:
67+
// RISCV: .section .sdata
68+
// RISCV-NOT: .section
69+
// RISCV: W:
70+
// RISCV: .section .sbss
71+
// RISCV-NOT: .section
72+
// RISCV: X:
7373

74-
//@ MIPS: .section .sdata
75-
//@ MIPS-NOT: .section
76-
//@ MIPS: U:
77-
//@ MIPS: .section .sbss
78-
//@ MIPS-NOT: .section
79-
//@ MIPS: V:
80-
//@ MIPS: .section .sdata
81-
//@ MIPS-NOT: .section
82-
//@ MIPS: W:
83-
//@ MIPS: .section .sbss
84-
//@ MIPS-NOT: .section
85-
//@ MIPS: X:
74+
// MIPS: .section .sdata
75+
// MIPS-NOT: .section
76+
// MIPS: U:
77+
// MIPS: .section .sbss
78+
// MIPS-NOT: .section
79+
// MIPS: V:
80+
// MIPS: .section .sdata
81+
// MIPS-NOT: .section
82+
// MIPS: W:
83+
// MIPS: .section .sbss
84+
// MIPS-NOT: .section
85+
// MIPS: X:
8686

87-
//@ CHECK: .section .data.Y,
88-
//@ CHECK-NOT: .section
89-
//@ CHECK: Y:
90-
//@ CHECK: .section .bss.Z,
91-
//@ CHECK-NOT: .section
92-
//@ CHECK: Z:
87+
// CHECK: .section .data.Y,
88+
// CHECK-NOT: .section
89+
// CHECK: Y:
90+
// CHECK: .section .bss.Z,
91+
// CHECK-NOT: .section
92+
// CHECK: Z:

0 commit comments

Comments
 (0)
Please sign in to comment.