diff options
author | Sanjay Patel <spatel@rotateright.com> | 2017-03-12 19:15:10 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2017-03-12 19:15:10 +0000 |
commit | e795daa55e8043b72bc67b388f61d24a98dc966b (patch) | |
tree | 9d2217d967181414f742f3b312dd445baefebe16 /clang/test/CodeGen/sse-builtins.c | |
parent | c9d4cb2f428bcc4c0d08d78beefde70a63ec2666 (diff) | |
download | bcm5719-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/sse-builtins.c')
-rw-r--r-- | clang/test/CodeGen/sse-builtins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGen/sse-builtins.c b/clang/test/CodeGen/sse-builtins.c index 27b016f6651..28b4f2cae1f 100644 --- a/clang/test/CodeGen/sse-builtins.c +++ b/clang/test/CodeGen/sse-builtins.c @@ -802,7 +802,7 @@ int test_mm_ucomineq_ss(__m128 A, __m128 B) { __m128 test_mm_undefined_ps() { // CHECK-LABEL: @test_mm_undefined_ps - // CHECK: ret <4 x float> undef + // CHECK: ret <4 x float> zeroinitializer return _mm_undefined_ps(); } |