Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/X86/avx512-mask-op.ll @ 33:e4204d083e25 LLVM3.5
LLVM 3.5
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 14:32:10 +0900 |
parents | 95c75e76d11b |
children | 54457678186b |
comparison
equal
deleted
inserted
replaced
1:f783a2dd24b1 | 33:e4204d083e25 |
---|---|
31 ; CHECK: kxorw | 31 ; CHECK: kxorw |
32 ; CHECK: korw | 32 ; CHECK: korw |
33 ret i16 %ret | 33 ret i16 %ret |
34 } | 34 } |
35 | 35 |
36 ; CHECK: unpckbw_test | |
37 ; CHECK: kunpckbw | |
38 ; CHECK:ret | |
39 declare <16 x i1> @llvm.x86.kunpck.v16i1(<8 x i1>, <8 x i1>) nounwind readnone | |
40 | |
41 define i16 @unpckbw_test(i8 %x, i8 %y) { | |
42 %m0 = bitcast i8 %x to <8 x i1> | |
43 %m1 = bitcast i8 %y to <8 x i1> | |
44 %k = tail call <16 x i1> @llvm.x86.kunpck.v16i1(<8 x i1> %m0, <8 x i1> %m1) | |
45 %r = bitcast <16 x i1> %k to i16 | |
46 ret i16 %r | |
47 } | |
48 | |
49 ; CHECK: shuf_test1 | 36 ; CHECK: shuf_test1 |
50 ; CHECK: kshiftrw $8 | 37 ; CHECK: kshiftrw $8 |
51 ; CHECK:ret | 38 ; CHECK:ret |
52 define i8 @shuf_test1(i16 %v) nounwind { | 39 define i8 @shuf_test1(i16 %v) nounwind { |
53 %v1 = bitcast i16 %v to <16 x i1> | 40 %v1 = bitcast i16 %v to <16 x i1> |