Skip to content

Commit 1308416

Browse files
committed
Address review comments
1 parent c580261 commit 1308416

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ __m128 test_mm_cvtph_ps(__m128i a) {
4646
return _mm_cvtph_ps(a);
4747
}
4848

49-
__m128i test_mm_cvtps_ph(__m128 a) {
50-
// CHECK-LABEL: test_mm_cvtps_ph
51-
// CHECK: call <8 x i16> @llvm.x86.vcvtps2ph.128(<4 x float> %{{.*}}, i32 0)
52-
return _mm_cvtps_ph(a, 0);
53-
}
54-
5549
// A value exactly halfway between 1.0 and the next representable FP16 number.
5650
// In binary, its significand ends in ...000, followed by a tie-bit 1.
5751
#define POS_HALFWAY (1.0f + 0.00048828125f) // 1.0 + 2^-11, a tie-breaking case
@@ -108,6 +102,12 @@ TEST_CONSTEXPR(match_v8hi(
108102
0xC100, 0x3C7D, 0x3C00, 0x0000, 0xC100, 0x3C7D, 0x3C00, 0x0000
109103
));
110104

105+
__m128i test_mm_cvtps_ph(__m128 a) {
106+
// CHECK-LABEL: test_mm_cvtps_ph
107+
// CHECK: call <8 x i16> @llvm.x86.vcvtps2ph.128(<4 x float> %{{.*}}, i32 0)
108+
return _mm_cvtps_ph(a, 0);
109+
}
110+
111111
//
112112
// Tests for Exact Dynamic Rounding
113113
//
@@ -123,4 +123,4 @@ __m128i test_mm256_cvtps_ph(__m256 a) {
123123
// CHECK-LABEL: test_mm256_cvtps_ph
124124
// CHECK: call <8 x i16> @llvm.x86.vcvtps2ph.256(<8 x float> %{{.*}}, i32 0)
125125
return _mm256_cvtps_ph(a, 0);
126-
}
126+
}

0 commit comments

Comments
 (0)