projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dec4bd0
)
[X86] Uncomment the _mm_extract_ps test and add checks.
author
Craig Topper
<craig.topper@gmail.com>
Sat, 9 Jul 2016 04:38:17 +0000
(
04:38
+0000)
committer
Craig Topper
<craig.topper@gmail.com>
Sat, 9 Jul 2016 04:38:17 +0000
(
04:38
+0000)
llvm-svn: 274965
clang/test/CodeGen/sse41-builtins.c
patch
|
blob
|
history
diff --git
a/clang/test/CodeGen/sse41-builtins.c
b/clang/test/CodeGen/sse41-builtins.c
index
6f984f8
..
ad24ecd
100644
(file)
--- a/
clang/test/CodeGen/sse41-builtins.c
+++ b/
clang/test/CodeGen/sse41-builtins.c
@@
-190,10
+190,11
@@
long long test_mm_extract_epi64(__m128i x) {
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