33//@ needs-llvm-components: x86
44
55#![ crate_type = "lib" ]
6- #![ feature( no_core, repr_simd, arm_target_feature , mips_target_feature , s390x_target_feature ) ]
6+ #![ feature( no_core, repr_simd) ]
77#![ no_core]
88extern crate minicore;
99
@@ -118,11 +118,7 @@ struct S([i64; 1]);
118118// CHECK-NEXT: %[[TEMP:.+]] = load i64, ptr %[[RET]]
119119// CHECK-NEXT: ret i64 %[[TEMP]]
120120#[ no_mangle]
121- #[ cfg_attr( target_family = "wasm" , target_feature( enable = "simd128" ) ) ]
122- #[ cfg_attr( target_arch = "arm" , target_feature( enable = "neon" ) ) ]
123121#[ cfg_attr( target_arch = "x86" , target_feature( enable = "sse" ) ) ]
124- #[ cfg_attr( target_arch = "mips" , target_feature( enable = "msa" ) ) ]
125- #[ cfg_attr( target_arch = "s390x" , target_feature( enable = "vector" ) ) ]
126122pub extern "C" fn single_element_simd_to_scalar ( b : S ) -> i64 {
127123 unsafe { mem:: transmute ( b) }
128124}
@@ -134,11 +130,7 @@ pub extern "C" fn single_element_simd_to_scalar(b: S) -> i64 {
134130// CHECK-NEXT: %[[TEMP:.+]] = load <1 x i64>, ptr %[[RET]]
135131// CHECK-NEXT: ret <1 x i64> %[[TEMP]]
136132#[ no_mangle]
137- #[ cfg_attr( target_family = "wasm" , target_feature( enable = "simd128" ) ) ]
138- #[ cfg_attr( target_arch = "arm" , target_feature( enable = "neon" ) ) ]
139133#[ cfg_attr( target_arch = "x86" , target_feature( enable = "sse" ) ) ]
140- #[ cfg_attr( target_arch = "mips" , target_feature( enable = "msa" ) ) ]
141- #[ cfg_attr( target_arch = "s390x" , target_feature( enable = "vector" ) ) ]
142134pub extern "C" fn scalar_to_single_element_simd ( b : i64 ) -> S {
143135 unsafe { mem:: transmute ( b) }
144136}
0 commit comments