diff options
| author | Adrian Friedli <adrian.friedli@husqvarnagroup.com> | 2025-04-29 10:20:25 +0200 |
|---|---|---|
| committer | Adrian Friedli <adrian.friedli@husqvarnagroup.com> | 2025-04-29 10:20:25 +0200 |
| commit | cf12e290fd5e356cef3c9d95643ea4dd4b093dfd (patch) | |
| tree | b25362c62a23f6a5ab3874fe2095c1978e30f7b0 /tests/codegen/repr | |
| parent | 1b8ab72680f36e783af84c1a3c4f8508572bd9f9 (diff) | |
| download | rust-cf12e290fd5e356cef3c9d95643ea4dd4b093dfd.tar.gz rust-cf12e290fd5e356cef3c9d95643ea4dd4b093dfd.zip | |
enable msa feature for mips in codegen tests
Diffstat (limited to 'tests/codegen/repr')
| -rw-r--r-- | tests/codegen/repr/transparent.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/codegen/repr/transparent.rs b/tests/codegen/repr/transparent.rs index 5475bfb6b65..29b627462a4 100644 --- a/tests/codegen/repr/transparent.rs +++ b/tests/codegen/repr/transparent.rs @@ -9,7 +9,7 @@ // For LoongArch: see codegen/loongarch-abi #![crate_type = "lib"] -#![feature(repr_simd, transparent_unions, arm_target_feature)] +#![feature(repr_simd, transparent_unions, arm_target_feature, mips_target_feature)] use std::marker::PhantomData; @@ -142,6 +142,7 @@ pub struct Vector(f32x4); #[cfg_attr(target_family = "wasm", target_feature(enable = "simd128"))] #[cfg_attr(target_arch = "arm", target_feature(enable = "neon"))] #[cfg_attr(target_arch = "x86", target_feature(enable = "sse"))] +#[cfg_attr(target_arch = "mips", target_feature(enable = "msa"))] pub extern "C" fn test_Vector(_: Vector) -> Vector { loop {} } |
