r274965 - [X86] Uncomment the _mm_extract_ps test and add checks.
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 8 21:38:17 PDT 2016
Author: ctopper
Date: Fri Jul 8 23:38:17 2016
New Revision: 274965
URL: http://llvm.org/viewvc/llvm-project?rev=274965&view=rev
Log:
[X86] Uncomment the _mm_extract_ps test and add checks.
Modified:
cfe/trunk/test/CodeGen/sse41-builtins.c
Modified: cfe/trunk/test/CodeGen/sse41-builtins.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/sse41-builtins.c?rev=274965&r1=274964&r2=274965&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/sse41-builtins.c (original)
+++ cfe/trunk/test/CodeGen/sse41-builtins.c Fri Jul 8 23:38:17 2016
@@ -190,10 +190,11 @@ long long test_mm_extract_epi64(__m128i
return _mm_extract_epi64(x, 1);
}
-//TODO
-//int test_mm_extract_ps(__m128 x) {
-// return _mm_extract_ps(_mm_add_ps(x,x), 1);
-//}
+int test_mm_extract_ps(__m128 x) {
+ // CHECK-LABEL: test_mm_extract_ps
+ // CHECK: extractelement <4 x float> %{{.*}}, i32 1
+ return _mm_extract_ps(x, 1);
+}
__m128d test_mm_floor_pd(__m128d x) {
// CHECK-LABEL: test_mm_floor_pd
More information about the cfe-commits
mailing list