Skip to content

Commit d1cec72

Browse files
author
Caiweiran
committed
Drop the target_feature checks and the unnecessary feature()s.
1 parent ec46ad5 commit d1cec72

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

tests/codegen-llvm/transmute-scalar.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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]
88
extern 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"))]
126122
pub 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"))]
142134
pub extern "C" fn scalar_to_single_element_simd(b: i64) -> S {
143135
unsafe { mem::transmute(b) }
144136
}

0 commit comments

Comments
 (0)