Skip to content

Commit 7ab45f8

Browse files
committed
update tests
1 parent 156d2aa commit 7ab45f8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

clang/test/CodeGen/X86/avx-builtins.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,13 +1511,13 @@ __m256 test_mm256_rcp_ps(__m256 A) {
15111511

15121512
__m256d test_mm256_round_pd(__m256d x) {
15131513
// CHECK-LABEL: test_mm256_round_pd
1514-
// CHECK: %{{.*}} = call <4 x double> @llvm.experimental.constrained.floor.v4f64(<4 x double> %{{.*}}, metadata !"fpexcept.strict")
1514+
// CHECK: %{{.*}} = call <4 x double> @llvm.experimental.constrained.roundeven.v4f64(<4 x double> %{{.*}}, metadata !"fpexcept.strict")
15151515
return _mm256_round_pd(x, 4);
15161516
}
15171517

15181518
__m256 test_mm256_round_ps(__m256 x) {
15191519
// CHECK-LABEL: test_mm256_round_ps
1520-
// CHECK: %{{.*}} = call <8 x float> @llvm.experimental.constrained.floor.v8f32(<8 x float> %{{.*}}, metadata !"fpexcept.strict")
1520+
// CHECK: %{{.*}} = call <8 x float> @llvm.experimental.constrained.roundeven.v8f32(<8 x float> %{{.*}}, metadata !"fpexcept.strict")
15211521
return _mm256_round_ps(x, 4);
15221522
}
15231523

clang/test/CodeGen/X86/sse41-builtins.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,28 +438,28 @@ TEST_CONSTEXPR(match_v8hi(_mm_packus_epi32((__m128i)(__v4si){40000, -50000, 3276
438438

439439
__m128d test_mm_round_pd(__m128d x) {
440440
// CHECK-LABEL: test_mm_round_pd
441-
// CHECK: %{{.*}} = call <2 x double> @llvm.experimental.constrained.floor.v2f64(<2 x double> %{{.*}}, metadata !"fpexcept.strict")
441+
// CHECK: %{{.*}} = call <2 x double> @llvm.experimental.constrained.roundeven.v2f64(<2 x double> %{{.*}}, metadata !"fpexcept.strict")
442442
return _mm_round_pd(x, 4);
443443
}
444444

445445
__m128 test_mm_round_ps(__m128 x) {
446446
// CHECK-LABEL: test_mm_round_ps
447-
// CHECK: %{{.*}} = call <4 x float> @llvm.experimental.constrained.floor.v4f32(<4 x float> %{{.*}}, metadata !"fpexcept.strict")
447+
// CHECK: %{{.*}} = call <4 x float> @llvm.experimental.constrained.roundeven.v4f32(<4 x float> %{{.*}}, metadata !"fpexcept.strict")
448448
return _mm_round_ps(x, 4);
449449
}
450450

451451
__m128d test_mm_round_sd(__m128d x, __m128d y) {
452452
// CHECK-LABEL: test_mm_round_sd
453453
// CHECK: %[[A:.*]] = extractelement <2 x double> %{{.*}}, i32 0
454-
// CHECK: %[[B:.*]] = call double @llvm.experimental.constrained.floor.f64(double %[[A:.*]], metadata !"fpexcept.strict")
454+
// CHECK: %[[B:.*]] = call double @llvm.experimental.constrained.roundeven.f64(double %[[A:.*]], metadata !"fpexcept.strict")
455455
// CHECK: %{{.*}} = insertelement <2 x double> %0, double %[[B:.*]], i32 0
456456
return _mm_round_sd(x, y, 4);
457457
}
458458

459459
__m128 test_mm_round_ss(__m128 x, __m128 y) {
460460
// CHECK-LABEL: test_mm_round_ss
461461
// CHECK: %[[A:.*]] = extractelement <4 x float> %{{.*}}, i32 0
462-
// CHECK: %[[B:.*]] = call float @llvm.experimental.constrained.floor.f32(float %[[A:.*]], metadata !"fpexcept.strict")
462+
// CHECK: %[[B:.*]] = call float @llvm.experimental.constrained.roundeven.f32(float %[[A:.*]], metadata !"fpexcept.strict")
463463
// CHECK: %{{.*}} = insertelement <4 x float> %0, float %[[B:.*]], i32 0
464464
return _mm_round_ss(x, y, 4);
465465
}

0 commit comments

Comments
 (0)