Skip to content

Commit 9638237

Browse files
committed
s390x: add assert_instr for vec_round
1 parent a64fbf9 commit 9638237

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/core_arch/src/s390x/vector.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,10 +1194,8 @@ mod sealed {
11941194
test_impl! { vec_roundc_f32 (a: vector_float) -> vector_float [nearbyint_v4f32, "vector-enhancements-1" vfisb] }
11951195
test_impl! { vec_roundc_f64 (a: vector_double) -> vector_double [nearbyint_v2f64, vfidb] }
11961196

1197-
// FIXME(llvm) llvm trunk already lowers roundeven to vfidb, but rust does not use it yet
1198-
// use https://godbolt.org/z/cWq95fexe to check, and enable the instruction test when it works
1199-
test_impl! { vec_round_f32 (a: vector_float) -> vector_float [roundeven_v4f32, _] }
1200-
test_impl! { vec_round_f64 (a: vector_double) -> vector_double [roundeven_v2f64, _] }
1197+
test_impl! { vec_round_f32 (a: vector_float) -> vector_float [roundeven_v4f32, "vector-enhancements-1" vfisb] }
1198+
test_impl! { vec_round_f64 (a: vector_double) -> vector_double [roundeven_v2f64, vfidb] }
12011199

12021200
#[unstable(feature = "stdarch_s390x", issue = "135681")]
12031201
pub trait VectorRoundc {

0 commit comments

Comments
 (0)