diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-08-05 22:19:15 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-08-05 22:19:15 +0000 |
commit | e9d503583804b63bdd815e8fdbc2f6cf627e973f (patch) | |
tree | 2eaf7524013871e3f41e005175976c7e79875d60 /test/CodeGen/X86/vfcmp.ll | |
parent | e3b8a48d3285cdaf3593af9d4b658e15df037b9f (diff) | |
download | external_llvm-e9d503583804b63bdd815e8fdbc2f6cf627e973f.zip external_llvm-e9d503583804b63bdd815e8fdbc2f6cf627e973f.tar.gz external_llvm-e9d503583804b63bdd815e8fdbc2f6cf627e973f.tar.bz2 |
Fix PR2620: Fix X86cmppd selection code so it expects operands to be v2f64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/vfcmp.ll')
-rw-r--r-- | test/CodeGen/X86/vfcmp.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vfcmp.ll b/test/CodeGen/X86/vfcmp.ll new file mode 100644 index 0000000..85b82a0 --- /dev/null +++ b/test/CodeGen/X86/vfcmp.ll @@ -0,0 +1,13 @@ +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 +; PR2620 + +define void @t(i32 %m_task_id, i32 %start_x, i32 %end_x) nounwind { + vfcmp olt <2 x double> zeroinitializer, zeroinitializer ; <<2 x i64>>:1 [#uses=1] + extractelement <2 x i64> %1, i32 1 ; <i64>:2 [#uses=1] + lshr i64 %2, 63 ; <i64>:3 [#uses=1] + trunc i64 %3 to i1 ; <i1>:4 [#uses=1] + zext i1 %4 to i8 ; <i8>:5 [#uses=1] + insertelement <2 x i8> zeroinitializer, i8 %5, i32 1 ; <<2 x i8>>:6 [#uses=1] + store <2 x i8> %6, <2 x i8>* null + ret void +} |