Fix codegen-llvm tests

This commit is contained in:
Adam Gemmell
2026-10-02 12:21:16 +01:00
parent a654a24045
commit b5cb898c84
2 changed files with 20 additions and 6 deletions

View File

@@ -5,15 +5,22 @@
//@ ignore-i686-pc-windows-gnu
// LLVM IR isn't very portable and the one tested here depends on the ABI which is different between
// x86 (where we use SSE registers) and others. `x86-64` and `x86-32-sse2` are identical, but
// compiletest does not support taking the union of multiple `only` annotations.
//@ revisions: x86-64 x86-32-sse2 by-ref
// architectures that pass vectors via registers and others that don't.
// The architecture-specific revisions are identical and only exist as compiletest does not support
// taking the union of multiple `only` annotations.
//@ revisions: x86-64 x86-32-sse2 aarch64 by-ref
//@[x86-64] only-x86_64
//@[x86-64] filecheck-flags: --check-prefix=by-val
//@[x86-32-sse2] only-rustc_abi-x86-sse2
//@[x86-32-sse2] filecheck-flags: --check-prefix=by-val
//@[aarch64] only-aarch64
//@[aarch64] filecheck-flags: --check-prefix=by-val
//@[by-ref] ignore-rustc_abi-x86-sse2
//@[by-ref] ignore-x86_64
//@[by-ref] ignore-aarch64
#![crate_type = "lib"]
#![allow(non_camel_case_types)]

View File

@@ -1,15 +1,22 @@
//@ compile-flags: -Copt-level=3
// LLVM IR isn't very portable and the one tested here depends on the ABI which is different between
// x86 (where we use SSE registers) and others. `x86-64` and `x86-32-sse2` are identical, but
// compiletest does not support taking the union of multiple `only` annotations.
//@ revisions: x86-64 x86-32-sse2 by-ref
// architectures that pass vectors via registers and others that don't.
// The architecture-specific revisions are identical and only exist as compiletest does not support
// taking the union of multiple `only` annotations.
//@ revisions: x86-64 x86-32-sse2 aarch64 by-ref
//@[x86-64] only-x86_64
//@[x86-64] filecheck-flags: --check-prefix=by-val
//@[x86-32-sse2] only-rustc_abi-x86-sse2
//@[x86-32-sse2] filecheck-flags: --check-prefix=by-val
//@[aarch64] only-aarch64
//@[aarch64] filecheck-flags: --check-prefix=by-val
//@[by-ref] ignore-rustc_abi-x86-sse2
//@[by-ref] ignore-x86_64
//@[by-ref] ignore-aarch64
#![crate_type = "lib"]
#![no_std]