summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/vcge.ll
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-11-08 23:21:22 +0000
committerOwen Anderson <resistor@mac.com>2010-11-08 23:21:22 +0000
commitc24cb3551ed66830b53362f593269873cb53a0c4 (patch)
treefcfad3ffe5894ca621031ee680dce6de429780a8 /test/CodeGen/ARM/vcge.ll
parent2c2304c62346e17f4963f6b609dc7ae6f8b91962 (diff)
downloadllvm-c24cb3551ed66830b53362f593269873cb53a0c4.tar.gz
llvm-c24cb3551ed66830b53362f593269873cb53a0c4.tar.bz2
llvm-c24cb3551ed66830b53362f593269873cb53a0c4.tar.xz
Add support for ARM's specialized vector-compare-against-zero instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118453 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/vcge.ll')
-rw-r--r--test/CodeGen/ARM/vcge.ll22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/vcge.ll b/test/CodeGen/ARM/vcge.ll
index 2c161113c1..f190931f1b 100644
--- a/test/CodeGen/ARM/vcge.ll
+++ b/test/CodeGen/ARM/vcge.ll
@@ -160,3 +160,25 @@ define <4 x i32> @vacgeQf32(<4 x float>* %A, <4 x float>* %B) nounwind {
declare <2 x i32> @llvm.arm.neon.vacged(<2 x float>, <2 x float>) nounwind readnone
declare <4 x i32> @llvm.arm.neon.vacgeq(<4 x float>, <4 x float>) nounwind readnone
+
+define <8 x i8> @vcgei8Z(<8 x i8>* %A) nounwind {
+;CHECK: vcgei8Z:
+;CHECK-NOT: vmov
+;CHECK-NOT: vmvn
+;CHECK: vcge.s8
+ %tmp1 = load <8 x i8>* %A
+ %tmp3 = icmp sge <8 x i8> %tmp1, <i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>
+ %tmp4 = sext <8 x i1> %tmp3 to <8 x i8>
+ ret <8 x i8> %tmp4
+}
+
+define <8 x i8> @vclei8Z(<8 x i8>* %A) nounwind {
+;CHECK: vclei8Z:
+;CHECK-NOT: vmov
+;CHECK-NOT: vmvn
+;CHECK: vcle.s8
+ %tmp1 = load <8 x i8>* %A
+ %tmp3 = icmp sle <8 x i8> %tmp1, <i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>
+ %tmp4 = sext <8 x i1> %tmp3 to <8 x i8>
+ ret <8 x i8> %tmp4
+}