summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/sse2-builtins.c
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-03-12 19:15:10 +0000
committerSanjay Patel <spatel@rotateright.com>2017-03-12 19:15:10 +0000
commite795daa55e8043b72bc67b388f61d24a98dc966b (patch)
tree9d2217d967181414f742f3b312dd445baefebe16 /clang/test/CodeGen/sse2-builtins.c
parentc9d4cb2f428bcc4c0d08d78beefde70a63ec2666 (diff)
downloadbcm5719-llvm-e795daa55e8043b72bc67b388f61d24a98dc966b.tar.gz
bcm5719-llvm-e795daa55e8043b72bc67b388f61d24a98dc966b.zip
[x86] these aren't the undefs you're looking for (PR32176)
x86 has undef SSE/AVX intrinsics that should represent a bogus register operand. This is not the same as LLVM's undef value which can take on multiple bit patterns. There are better solutions / follow-ups to this discussed here: https://bugs.llvm.org/show_bug.cgi?id=32176 ...but this should prevent miscompiles with a one-line code change. Differential Revision: https://reviews.llvm.org/D30834 llvm-svn: 297588
Diffstat (limited to 'clang/test/CodeGen/sse2-builtins.c')
-rw-r--r--clang/test/CodeGen/sse2-builtins.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGen/sse2-builtins.c b/clang/test/CodeGen/sse2-builtins.c
index 48c70368547..a140a6ce55b 100644
--- a/clang/test/CodeGen/sse2-builtins.c
+++ b/clang/test/CodeGen/sse2-builtins.c
@@ -1455,13 +1455,13 @@ int test_mm_ucomineq_sd(__m128d A, __m128d B) {
__m128d test_mm_undefined_pd() {
// CHECK-LABEL: @test_mm_undefined_pd
- // CHECK: ret <2 x double> undef
+ // CHECK: ret <2 x double> zeroinitializer
return _mm_undefined_pd();
}
__m128i test_mm_undefined_si128() {
// CHECK-LABEL: @test_mm_undefined_si128
- // CHECK: ret <2 x i64> undef
+ // CHECK: ret <2 x i64> zeroinitializer
return _mm_undefined_si128();
}
OpenPOWER on IntegriCloud