[clang] 39e6dc0 - [clang][x86] avx-builtins.c - reorder tests to keep alpha sorting order. NFC.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 7 08:00:15 PST 2024
Author: Simon Pilgrim
Date: 2024-11-07T16:00:00Z
New Revision: 39e6dc09d2fe824647bc168fbe96f1fc57cb0998
URL: https://github.com/llvm/llvm-project/commit/39e6dc09d2fe824647bc168fbe96f1fc57cb0998
DIFF: https://github.com/llvm/llvm-project/commit/39e6dc09d2fe824647bc168fbe96f1fc57cb0998.diff
LOG: [clang][x86] avx-builtins.c - reorder tests to keep alpha sorting order. NFC.
Added:
Modified:
clang/test/CodeGen/X86/avx-builtins.c
Removed:
################################################################################
diff --git a/clang/test/CodeGen/X86/avx-builtins.c b/clang/test/CodeGen/X86/avx-builtins.c
index e390d861832345..cf7c61d871502b 100644
--- a/clang/test/CodeGen/X86/avx-builtins.c
+++ b/clang/test/CodeGen/X86/avx-builtins.c
@@ -938,6 +938,24 @@ __m256d test_mm256_cvtps_pd(__m128 A) {
return _mm256_cvtps_pd(A);
}
+double test_mm256_cvtsd_f64(__m256d __a) {
+ // CHECK-LABEL: test_mm256_cvtsd_f64
+ // CHECK: extractelement <4 x double> %{{.*}}, i32 0
+ return _mm256_cvtsd_f64(__a);
+}
+
+int test_mm256_cvtsi256_si32(__m256i __a) {
+ // CHECK-LABEL: test_mm256_cvtsi256_si32
+ // CHECK: extractelement <8 x i32> %{{.*}}, i32 0
+ return _mm256_cvtsi256_si32(__a);
+}
+
+float test_mm256_cvtss_f32(__m256 __a) {
+ // CHECK-LABEL: test_mm256_cvtss_f32
+ // CHECK: extractelement <8 x float> %{{.*}}, i32 0
+ return _mm256_cvtss_f32(__a);
+}
+
__m128i test_mm256_cvttpd_epi32(__m256d A) {
// CHECK-LABEL: test_mm256_cvttpd_epi32
// CHECK: call <4 x i32> @llvm.x86.avx.cvtt.pd2dq.256(<4 x double> %{{.*}})
@@ -2086,24 +2104,3 @@ __m256i test_mm256_zextsi128_si256(__m128i A) {
// CHECK: shufflevector <2 x i64> %{{.*}}, <2 x i64> %{{.*}}, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
return _mm256_zextsi128_si256(A);
}
-
-double test_mm256_cvtsd_f64(__m256d __a)
-{
- // CHECK-LABEL: test_mm256_cvtsd_f64
- // CHECK: extractelement <4 x double> %{{.*}}, i32 0
- return _mm256_cvtsd_f64(__a);
-}
-
-int test_mm256_cvtsi256_si32(__m256i __a)
-{
- // CHECK-LABEL: test_mm256_cvtsi256_si32
- // CHECK: extractelement <8 x i32> %{{.*}}, i32 0
- return _mm256_cvtsi256_si32(__a);
-}
-
-float test_mm256_cvtss_f32(__m256 __a)
-{
- // CHECK-LABEL: test_mm256_cvtss_f32
- // CHECK: extractelement <8 x float> %{{.*}}, i32 0
- return _mm256_cvtss_f32(__a);
-}
More information about the cfe-commits
mailing list