Skip to content

Commit 6e48b96

Browse files
committed
[AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives
1 parent cbf10af commit 6e48b96

File tree

1,817 files changed

+4775
-4775
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,817 files changed

+4775
-4775
lines changed

tests/assembly/aarch64-naked-fn-no-bti-prolog.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// compile-flags: -C no-prepopulate-passes -Zbranch-protection=bti
2-
// assembly-output: emit-asm
3-
// needs-asm-support
4-
// only-aarch64
1+
//@ compile-flags: -C no-prepopulate-passes -Zbranch-protection=bti
2+
//@ assembly-output: emit-asm
3+
//@ needs-asm-support
4+
//@ only-aarch64
55

66
#![crate_type = "lib"]
77
#![feature(naked_functions)]

tests/assembly/aarch64-pointer-auth.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Test that PAC instructions are emitted when branch-protection is specified.
22

3-
// assembly-output: emit-asm
4-
// compile-flags: --target aarch64-unknown-linux-gnu
5-
// compile-flags: -Z branch-protection=pac-ret,leaf
6-
// needs-llvm-components: aarch64
3+
//@ assembly-output: emit-asm
4+
//@ compile-flags: --target aarch64-unknown-linux-gnu
5+
//@ compile-flags: -Z branch-protection=pac-ret,leaf
6+
//@ needs-llvm-components: aarch64
77

88
#![feature(no_core, lang_items)]
99
#![no_std]

tests/assembly/align_offset.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// assembly-output: emit-asm
2-
// compile-flags: -Copt-level=1
3-
// only-x86_64
1+
//@ assembly-output: emit-asm
2+
//@ compile-flags: -Copt-level=1
3+
//@ only-x86_64
44
#![crate_type="rlib"]
55

66
// CHECK-LABEL: align_offset_byte_ptr

tests/assembly/asm/aarch64-el2vmsa.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// assembly-output: emit-asm
2-
// compile-flags: --target aarch64-unknown-linux-gnu
3-
// needs-llvm-components: aarch64
1+
//@ assembly-output: emit-asm
2+
//@ compile-flags: --target aarch64-unknown-linux-gnu
3+
//@ needs-llvm-components: aarch64
44

55
#![feature(no_core, lang_items, rustc_attrs)]
66
#![crate_type = "rlib"]

tests/assembly/asm/aarch64-modifiers.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// assembly-output: emit-asm
2-
// compile-flags: -O
3-
// compile-flags: --target aarch64-unknown-linux-gnu
4-
// needs-llvm-components: aarch64
1+
//@ assembly-output: emit-asm
2+
//@ compile-flags: -O
3+
//@ compile-flags: --target aarch64-unknown-linux-gnu
4+
//@ needs-llvm-components: aarch64
55

66
#![feature(no_core, lang_items, rustc_attrs)]
77
#![crate_type = "rlib"]

tests/assembly/asm/aarch64-outline-atomics.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// assembly-output: emit-asm
2-
// compile-flags: -O
3-
// compile-flags: --target aarch64-unknown-linux-gnu
4-
// needs-llvm-components: aarch64
5-
// only-aarch64
6-
// only-linux
1+
//@ assembly-output: emit-asm
2+
//@ compile-flags: -O
3+
//@ compile-flags: --target aarch64-unknown-linux-gnu
4+
//@ needs-llvm-components: aarch64
5+
//@ only-aarch64
6+
//@ only-linux
77

88
#![crate_type = "rlib"]
99

tests/assembly/asm/aarch64-types.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// assembly-output: emit-asm
2-
// compile-flags: --target aarch64-unknown-linux-gnu
3-
// needs-llvm-components: aarch64
1+
//@ assembly-output: emit-asm
2+
//@ compile-flags: --target aarch64-unknown-linux-gnu
3+
//@ needs-llvm-components: aarch64
44

55
#![feature(no_core, lang_items, rustc_attrs, repr_simd)]
66
#![crate_type = "rlib"]

tests/assembly/asm/arm-modifiers.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// assembly-output: emit-asm
2-
// compile-flags: -O
3-
// compile-flags: --target armv7-unknown-linux-gnueabihf
4-
// compile-flags: -C target-feature=+neon
5-
// needs-llvm-components: arm
1+
//@ assembly-output: emit-asm
2+
//@ compile-flags: -O
3+
//@ compile-flags: --target armv7-unknown-linux-gnueabihf
4+
//@ compile-flags: -C target-feature=+neon
5+
//@ needs-llvm-components: arm
66

77
#![feature(no_core, lang_items, rustc_attrs, repr_simd)]
88
#![crate_type = "rlib"]

tests/assembly/asm/arm-types.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// assembly-output: emit-asm
2-
// compile-flags: --target armv7-unknown-linux-gnueabihf
3-
// compile-flags: -C target-feature=+neon
4-
// compile-flags: -C opt-level=0
5-
// needs-llvm-components: arm
1+
//@ assembly-output: emit-asm
2+
//@ compile-flags: --target armv7-unknown-linux-gnueabihf
3+
//@ compile-flags: -C target-feature=+neon
4+
//@ compile-flags: -C opt-level=0
5+
//@ needs-llvm-components: arm
66

77
#![feature(no_core, lang_items, rustc_attrs, repr_simd)]
88
#![crate_type = "rlib"]

tests/assembly/asm/avr-modifiers.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// assembly-output: emit-asm
2-
// compile-flags: --target avr-unknown-gnu-atmega328
3-
// needs-llvm-components: avr
1+
//@ assembly-output: emit-asm
2+
//@ compile-flags: --target avr-unknown-gnu-atmega328
3+
//@ needs-llvm-components: avr
44

55
#![feature(no_core, lang_items, rustc_attrs, asm_experimental_arch)]
66
#![crate_type = "rlib"]

tests/assembly/asm/avr-types.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// assembly-output: emit-asm
2-
// compile-flags: --target avr-unknown-gnu-atmega328
3-
// needs-llvm-components: avr
1+
//@ assembly-output: emit-asm
2+
//@ compile-flags: --target avr-unknown-gnu-atmega328
3+
//@ needs-llvm-components: avr
44

55
#![feature(no_core, lang_items, rustc_attrs, asm_experimental_arch)]
66
#![crate_type = "rlib"]

tests/assembly/asm/bpf-types.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// assembly-output: emit-asm
2-
// compile-flags: --target bpfel-unknown-none -C target_feature=+alu32
3-
// needs-llvm-components: bpf
1+
//@ assembly-output: emit-asm
2+
//@ compile-flags: --target bpfel-unknown-none -C target_feature=+alu32
3+
//@ needs-llvm-components: bpf
44

55
#![feature(no_core, lang_items, rustc_attrs, repr_simd, asm_experimental_arch)]
66
#![crate_type = "rlib"]

tests/assembly/asm/global_asm.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// only-x86_64
2-
// only-linux
3-
// assembly-output: emit-asm
4-
// compile-flags: -C llvm-args=--x86-asm-syntax=intel
5-
// compile-flags: -C symbol-mangling-version=v0
1+
//@ only-x86_64
2+
//@ only-linux
3+
//@ assembly-output: emit-asm
4+
//@ compile-flags: -C llvm-args=--x86-asm-syntax=intel
5+
//@ compile-flags: -C symbol-mangling-version=v0
66

77
#![feature(asm_const)]
88
#![crate_type = "rlib"]

tests/assembly/asm/hexagon-types.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// assembly-output: emit-asm
2-
// compile-flags: --target hexagon-unknown-linux-musl
3-
// needs-llvm-components: hexagon
1+
//@ assembly-output: emit-asm
2+
//@ compile-flags: --target hexagon-unknown-linux-musl
3+
//@ needs-llvm-components: hexagon
44

55
#![feature(no_core, lang_items, rustc_attrs, repr_simd, asm_experimental_arch)]
66
#![crate_type = "rlib"]

tests/assembly/asm/inline-asm-avx.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// assembly-output: emit-asm
2-
// compile-flags: --crate-type=lib
3-
// only-x86_64
4-
// ignore-sgx
1+
//@ assembly-output: emit-asm
2+
//@ compile-flags: --crate-type=lib
3+
//@ only-x86_64
4+
//@ ignore-sgx
55

66
#![feature(portable_simd)]
77

tests/assembly/asm/loongarch-type.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// assembly-output: emit-asm
2-
// compile-flags: --target loongarch64-unknown-linux-gnu
3-
// needs-llvm-components: loongarch
1+
//@ assembly-output: emit-asm
2+
//@ compile-flags: --target loongarch64-unknown-linux-gnu
3+
//@ needs-llvm-components: loongarch
44

55
#![feature(no_core, lang_items, rustc_attrs, asm_experimental_arch)]
66
#![crate_type = "rlib"]

tests/assembly/asm/m68k-types.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// assembly-output: emit-asm
2-
// compile-flags: --target m68k-unknown-linux-gnu
3-
// needs-llvm-components: m68k
1+
//@ assembly-output: emit-asm
2+
//@ compile-flags: --target m68k-unknown-linux-gnu
3+
//@ needs-llvm-components: m68k
44

55
#![feature(no_core, lang_items, rustc_attrs, asm_experimental_arch)]
66
#![crate_type = "rlib"]

tests/assembly/asm/mips-types.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// revisions: mips32 mips64
2-
// assembly-output: emit-asm
3-
//[mips32] compile-flags: --target mips-unknown-linux-gnu
4-
//[mips32] needs-llvm-components: mips
5-
//[mips64] compile-flags: --target mips64-unknown-linux-gnuabi64
6-
//[mips64] needs-llvm-components: mips
1+
//@ revisions: mips32 mips64
2+
//@ assembly-output: emit-asm
3+
//@[mips32] compile-flags: --target mips-unknown-linux-gnu
4+
//@[mips32] needs-llvm-components: mips
5+
//@[mips64] compile-flags: --target mips64-unknown-linux-gnuabi64
6+
//@[mips64] needs-llvm-components: mips
77

88
#![feature(no_core, lang_items, rustc_attrs, repr_simd, asm_experimental_arch)]
99
#![crate_type = "rlib"]

tests/assembly/asm/msp430-types.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// assembly-output: emit-asm
2-
// compile-flags: --target msp430-none-elf
3-
// needs-llvm-components: msp430
1+
//@ assembly-output: emit-asm
2+
//@ compile-flags: --target msp430-none-elf
3+
//@ needs-llvm-components: msp430
44

55
#![feature(no_core, lang_items, rustc_attrs, asm_experimental_arch, asm_const)]
66
#![crate_type = "rlib"]

tests/assembly/asm/nvptx-types.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// assembly-output: emit-asm
2-
// compile-flags: --target nvptx64-nvidia-cuda
3-
// compile-flags: --crate-type cdylib
4-
// needs-llvm-components: nvptx
1+
//@ assembly-output: emit-asm
2+
//@ compile-flags: --target nvptx64-nvidia-cuda
3+
//@ compile-flags: --crate-type cdylib
4+
//@ needs-llvm-components: nvptx
55

66
#![feature(no_core, lang_items, rustc_attrs, asm_experimental_arch)]
77
#![no_core]

tests/assembly/asm/powerpc-types.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// revisions: powerpc powerpc64
2-
// assembly-output: emit-asm
3-
//[powerpc] compile-flags: --target powerpc-unknown-linux-gnu
4-
//[powerpc] needs-llvm-components: powerpc
5-
//[powerpc64] compile-flags: --target powerpc64-unknown-linux-gnu
6-
//[powerpc64] needs-llvm-components: powerpc
1+
//@ revisions: powerpc powerpc64
2+
//@ assembly-output: emit-asm
3+
//@[powerpc] compile-flags: --target powerpc-unknown-linux-gnu
4+
//@[powerpc] needs-llvm-components: powerpc
5+
//@[powerpc64] compile-flags: --target powerpc64-unknown-linux-gnu
6+
//@[powerpc64] needs-llvm-components: powerpc
77

88
#![feature(no_core, lang_items, rustc_attrs, repr_simd, asm_experimental_arch)]
99
#![crate_type = "rlib"]

tests/assembly/asm/riscv-types.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// revisions: riscv64 riscv32
2-
// assembly-output: emit-asm
3-
//[riscv64] compile-flags: --target riscv64imac-unknown-none-elf
4-
//[riscv64] needs-llvm-components: riscv
5-
//[riscv32] compile-flags: --target riscv32imac-unknown-none-elf
6-
//[riscv32] needs-llvm-components: riscv
7-
// compile-flags: -C target-feature=+d
1+
//@ revisions: riscv64 riscv32
2+
//@ assembly-output: emit-asm
3+
//@[riscv64] compile-flags: --target riscv64imac-unknown-none-elf
4+
//@[riscv64] needs-llvm-components: riscv
5+
//@[riscv32] compile-flags: --target riscv32imac-unknown-none-elf
6+
//@[riscv32] needs-llvm-components: riscv
7+
//@ compile-flags: -C target-feature=+d
88

99
#![feature(no_core, lang_items, rustc_attrs)]
1010
#![crate_type = "rlib"]

tests/assembly/asm/s390x-types.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// revisions: s390x
2-
// assembly-output: emit-asm
3-
//[s390x] compile-flags: --target s390x-unknown-linux-gnu
4-
//[s390x] needs-llvm-components: systemz
1+
//@ revisions: s390x
2+
//@ assembly-output: emit-asm
3+
//@[s390x] compile-flags: --target s390x-unknown-linux-gnu
4+
//@[s390x] needs-llvm-components: systemz
55

66
#![feature(no_core, lang_items, rustc_attrs, repr_simd, asm_experimental_arch)]
77
#![crate_type = "rlib"]

tests/assembly/asm/wasm-types.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// assembly-output: emit-asm
2-
// compile-flags: --target wasm32-unknown-unknown
3-
// compile-flags: --crate-type cdylib
4-
// needs-llvm-components: webassembly
1+
//@ assembly-output: emit-asm
2+
//@ compile-flags: --target wasm32-unknown-unknown
3+
//@ compile-flags: --crate-type cdylib
4+
//@ needs-llvm-components: webassembly
55

66
#![feature(no_core, lang_items, rustc_attrs, asm_experimental_arch)]
77
#![no_core]

tests/assembly/asm/x86-modifiers.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// revisions: x86_64 i686
2-
// assembly-output: emit-asm
3-
// compile-flags: -O
4-
//[x86_64] compile-flags: --target x86_64-unknown-linux-gnu
5-
//[x86_64] needs-llvm-components: x86
6-
//[i686] compile-flags: --target i686-unknown-linux-gnu
7-
//[i686] needs-llvm-components: x86
8-
// compile-flags: -C llvm-args=--x86-asm-syntax=intel
9-
// compile-flags: -C target-feature=+avx512bw
1+
//@ revisions: x86_64 i686
2+
//@ assembly-output: emit-asm
3+
//@ compile-flags: -O
4+
//@[x86_64] compile-flags: --target x86_64-unknown-linux-gnu
5+
//@[x86_64] needs-llvm-components: x86
6+
//@[i686] compile-flags: --target i686-unknown-linux-gnu
7+
//@[i686] needs-llvm-components: x86
8+
//@ compile-flags: -C llvm-args=--x86-asm-syntax=intel
9+
//@ compile-flags: -C target-feature=+avx512bw
1010

1111
#![feature(no_core, lang_items, rustc_attrs)]
1212
#![crate_type = "rlib"]

tests/assembly/asm/x86-types.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// revisions: x86_64 i686
2-
// assembly-output: emit-asm
3-
//[x86_64] compile-flags: --target x86_64-unknown-linux-gnu
4-
//[x86_64] needs-llvm-components: x86
5-
//[i686] compile-flags: --target i686-unknown-linux-gnu
6-
//[i686] needs-llvm-components: x86
7-
// compile-flags: -C llvm-args=--x86-asm-syntax=intel
8-
// compile-flags: -C target-feature=+avx512bw
1+
//@ revisions: x86_64 i686
2+
//@ assembly-output: emit-asm
3+
//@[x86_64] compile-flags: --target x86_64-unknown-linux-gnu
4+
//@[x86_64] needs-llvm-components: x86
5+
//@[i686] compile-flags: --target i686-unknown-linux-gnu
6+
//@[i686] needs-llvm-components: x86
7+
//@ compile-flags: -C llvm-args=--x86-asm-syntax=intel
8+
//@ compile-flags: -C target-feature=+avx512bw
99

1010
#![feature(no_core, lang_items, rustc_attrs, repr_simd)]
1111
#![crate_type = "rlib"]

tests/assembly/closure-inherit-target-feature.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// only-x86_64
2-
// ignore-sgx Tests incompatible with LVI mitigations
3-
// assembly-output: emit-asm
1+
//@ only-x86_64
2+
//@ ignore-sgx Tests incompatible with LVI mitigations
3+
//@ assembly-output: emit-asm
44
// make sure the feature is not enabled at compile-time
5-
// compile-flags: -C opt-level=3 -C target-feature=-sse4.1 -C llvm-args=-x86-asm-syntax=intel
5+
//@ compile-flags: -C opt-level=3 -C target-feature=-sse4.1 -C llvm-args=-x86-asm-syntax=intel
66

77
#![feature(target_feature_11)]
88
#![crate_type = "rlib"]

tests/assembly/dwarf4.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Makes sure that `-Z dwarf-version=4` causes `rustc` to emit DWARF version 4.
2-
// assembly-output: emit-asm
3-
// compile-flags: -g --target x86_64-unknown-linux-gnu -Z dwarf-version=4 -Copt-level=0
4-
// needs-llvm-components: x86
2+
//@ assembly-output: emit-asm
3+
//@ compile-flags: -g --target x86_64-unknown-linux-gnu -Z dwarf-version=4 -Copt-level=0
4+
//@ needs-llvm-components: x86
55

66
#![feature(no_core, lang_items)]
77
#![crate_type = "rlib"]

tests/assembly/dwarf5.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Makes sure that `-Z dwarf-version=5` causes `rustc` to emit DWARF version 5.
2-
// assembly-output: emit-asm
3-
// compile-flags: -g --target x86_64-unknown-linux-gnu -Z dwarf-version=5 -Copt-level=0
4-
// needs-llvm-components: x86
2+
//@ assembly-output: emit-asm
3+
//@ compile-flags: -g --target x86_64-unknown-linux-gnu -Z dwarf-version=5 -Copt-level=0
4+
//@ needs-llvm-components: x86
55

66
#![feature(no_core, lang_items)]
77
#![crate_type = "rlib"]

tests/assembly/is_aligned.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// assembly-output: emit-asm
2-
// only-x86_64
3-
// ignore-sgx
4-
// revisions: opt-speed opt-size
5-
// [opt-speed] compile-flags: -Copt-level=2 -Cdebug-assertions=no
6-
// [opt-size] compile-flags: -Copt-level=s -Cdebug-assertions=no
1+
//@ assembly-output: emit-asm
2+
//@ only-x86_64
3+
//@ ignore-sgx
4+
//@ revisions: opt-speed opt-size
5+
//@ [opt-speed] compile-flags: -Copt-level=2 -Cdebug-assertions=no
6+
//@ [opt-size] compile-flags: -Copt-level=s -Cdebug-assertions=no
77
#![crate_type="rlib"]
88

99
#![feature(core_intrinsics)]

tests/assembly/libs/issue-115339-zip-arrays.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// assembly-output: emit-asm
1+
//@ assembly-output: emit-asm
22
// # zen3 previously exhibited odd vectorization
3-
// compile-flags: --crate-type=lib -Ctarget-cpu=znver3 -O
4-
// only-x86_64
5-
// ignore-sgx
3+
//@ compile-flags: --crate-type=lib -Ctarget-cpu=znver3 -O
4+
//@ only-x86_64
5+
//@ ignore-sgx
66

77
use std::iter;
88

0 commit comments

Comments
 (0)