3
3
//@ needs-llvm-components: x86
4
4
5
5
#![ crate_type = "lib" ]
6
- #![ feature( no_core, repr_simd, arm_target_feature , mips_target_feature , s390x_target_feature ) ]
6
+ #![ feature( no_core, repr_simd) ]
7
7
#![ no_core]
8
8
extern crate minicore;
9
9
@@ -118,11 +118,7 @@ struct S([i64; 1]);
118
118
// CHECK-NEXT: %[[TEMP:.+]] = load i64, ptr %[[RET]]
119
119
// CHECK-NEXT: ret i64 %[[TEMP]]
120
120
#[ no_mangle]
121
- #[ cfg_attr( target_family = "wasm" , target_feature( enable = "simd128" ) ) ]
122
- #[ cfg_attr( target_arch = "arm" , target_feature( enable = "neon" ) ) ]
123
121
#[ 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" ) ) ]
126
122
pub extern "C" fn single_element_simd_to_scalar ( b : S ) -> i64 {
127
123
unsafe { mem:: transmute ( b) }
128
124
}
@@ -134,11 +130,7 @@ pub extern "C" fn single_element_simd_to_scalar(b: S) -> i64 {
134
130
// CHECK-NEXT: %[[TEMP:.+]] = load <1 x i64>, ptr %[[RET]]
135
131
// CHECK-NEXT: ret <1 x i64> %[[TEMP]]
136
132
#[ no_mangle]
137
- #[ cfg_attr( target_family = "wasm" , target_feature( enable = "simd128" ) ) ]
138
- #[ cfg_attr( target_arch = "arm" , target_feature( enable = "neon" ) ) ]
139
133
#[ 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" ) ) ]
142
134
pub extern "C" fn scalar_to_single_element_simd ( b : i64 ) -> S {
143
135
unsafe { mem:: transmute ( b) }
144
136
}
0 commit comments