diff options
author | Elena Demikhovsky <elena.demikhovsky@intel.com> | 2013-08-19 13:26:14 +0000 |
---|---|---|
committer | Elena Demikhovsky <elena.demikhovsky@intel.com> | 2013-08-19 13:26:14 +0000 |
commit | f12df0ad507a620daedcab4041d473e40af81eb9 (patch) | |
tree | 7660c1707b276c4a52dd203599b23b24ad2a940b /test/CodeGen/X86/avx512-vec-cmp.ll | |
parent | d4a37e61378949835d93df6b8e4a9feadb4edeef (diff) | |
download | external_llvm-f12df0ad507a620daedcab4041d473e40af81eb9.zip external_llvm-f12df0ad507a620daedcab4041d473e40af81eb9.tar.gz external_llvm-f12df0ad507a620daedcab4041d473e40af81eb9.tar.bz2 |
AVX-512: added arithmetic and logical operations.
ADD, SUB, MUL integer and FP types. OR, AND, XOR.
Added embeded broadcast form for these instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188673 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/avx512-vec-cmp.ll')
-rw-r--r-- | test/CodeGen/X86/avx512-vec-cmp.ll | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/CodeGen/X86/avx512-vec-cmp.ll b/test/CodeGen/X86/avx512-vec-cmp.ll index ee57af7..c9747a3 100644 --- a/test/CodeGen/X86/avx512-vec-cmp.ll +++ b/test/CodeGen/X86/avx512-vec-cmp.ll @@ -21,12 +21,13 @@ define <8 x double> @test2(<8 x double> %x, <8 x double> %y) nounwind { } ; CHECK-LABEL: test3 -; CHECK: vpcmpeqd +; CHECK: vpcmpeqd (%rdi) ; CHECK: vmovdqu32 ; CHECK: ret -define <16 x i32> @test3(<16 x i32> %x, <16 x i32> %y) nounwind { +define <16 x i32> @test3(<16 x i32> %x, <16 x i32> %x1, <16 x i32>* %yp) nounwind { + %y = load <16 x i32>* %yp, align 4 %mask = icmp eq <16 x i32> %x, %y - %max = select <16 x i1> %mask, <16 x i32> %x, <16 x i32> %y + %max = select <16 x i1> %mask, <16 x i32> %x, <16 x i32> %x1 ret <16 x i32> %max } |