summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorElena Demikhovsky <elena.demikhovsky@intel.com>2014-01-16 08:45:54 +0000
committerElena Demikhovsky <elena.demikhovsky@intel.com>2014-01-16 08:45:54 +0000
commit165f7ac98fda8adffe098121c95ae12e1b97f9fa (patch)
tree7509398f91da1cb592a4fee0acd7d737adbb0f88 /test/CodeGen
parentc3ab5de57c3a4c3ef00e83ad92a2df8c9ddf7e4f (diff)
downloadllvm-165f7ac98fda8adffe098121c95ae12e1b97f9fa.tar.gz
llvm-165f7ac98fda8adffe098121c95ae12e1b97f9fa.tar.bz2
llvm-165f7ac98fda8adffe098121c95ae12e1b97f9fa.tar.xz
AVX-512: fixed a compare pattern
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199366 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/avx512-cmp.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx512-cmp.ll b/test/CodeGen/X86/avx512-cmp.ll
index 5bc02070ac..3515529c89 100644
--- a/test/CodeGen/X86/avx512-cmp.ll
+++ b/test/CodeGen/X86/avx512-cmp.ll
@@ -96,3 +96,12 @@ entry:
ret i32 %or
}
+define i32 @test8(i32 %a1, i32 %a2, i32 %a3) {
+ %tmp1 = icmp eq i32 %a1, -1
+ %tmp2 = icmp eq i32 %a2, -2147483648
+ %tmp3 = and i1 %tmp1, %tmp2
+ %tmp4 = icmp eq i32 %a3, 0
+ %tmp5 = or i1 %tmp3, %tmp4
+ %res = select i1 %tmp5, i32 1, i32 %a3
+ ret i32 %res
+ } \ No newline at end of file