diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-03-25 20:08:07 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-03-25 20:08:07 +0000 |
commit | 26471c48b3d49bdbcfcc05cb9a575b5fa123fbbf (patch) | |
tree | cf75442b4cf9f93ed3b27eef5bd8a601353c94b9 /test | |
parent | d34af7875b682d519038295b04ab4e15f237ccdf (diff) | |
download | external_llvm-26471c48b3d49bdbcfcc05cb9a575b5fa123fbbf.zip external_llvm-26471c48b3d49bdbcfcc05cb9a575b5fa123fbbf.tar.gz external_llvm-26471c48b3d49bdbcfcc05cb9a575b5fa123fbbf.tar.bz2 |
Handle a special case xor undef, undef -> 0. Technically this should be transformed to undef. But this is such a common idiom (misuse) we are going to handle it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48792 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/xor-undef.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/xor-undef.ll b/test/CodeGen/X86/xor-undef.ll new file mode 100644 index 0000000..0e60d4e --- /dev/null +++ b/test/CodeGen/X86/xor-undef.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep xor | count 2 + +define <4 x i32> @t1() { + %tmp = xor <4 x i32> undef, undef + ret <4 x i32> %tmp +} + +define i32 @t2() { + %tmp = xor i32 undef, undef + ret i32 %tmp +} |