aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/vceq.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/vceq.ll
parent2c2304c62346e17f4963f6b609dc7ae6f8b91962 (diff)
downloadexternal_llvm-c24cb3551ed66830b53362f593269873cb53a0c4.zip
external_llvm-c24cb3551ed66830b53362f593269873cb53a0c4.tar.gz
external_llvm-c24cb3551ed66830b53362f593269873cb53a0c4.tar.bz2
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/vceq.ll')
-rw-r--r--test/CodeGen/ARM/vceq.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/vceq.ll b/test/CodeGen/ARM/vceq.ll
index e478751..051c349 100644
--- a/test/CodeGen/ARM/vceq.ll
+++ b/test/CodeGen/ARM/vceq.ll
@@ -79,3 +79,14 @@ define <4 x i32> @vceqQf32(<4 x float>* %A, <4 x float>* %B) nounwind {
%tmp4 = sext <4 x i1> %tmp3 to <4 x i32>
ret <4 x i32> %tmp4
}
+
+define <8 x i8> @vceqi8Z(<8 x i8>* %A) nounwind {
+;CHECK: vceqi8Z:
+;CHECK-NOT: vmov
+;CHECK-NOT: vmvn
+;CHECK: vceq.i8
+ %tmp1 = load <8 x i8>* %A
+ %tmp3 = icmp eq <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
+}