summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Hexagon/vect/bit4x8.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/Hexagon/vect/bit4x8.ll')
-rw-r--r--llvm/test/CodeGen/Hexagon/vect/bit4x8.ll27
1 files changed, 27 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Hexagon/vect/bit4x8.ll b/llvm/test/CodeGen/Hexagon/vect/bit4x8.ll
new file mode 100644
index 00000000000..2cc45f37150
--- /dev/null
+++ b/llvm/test/CodeGen/Hexagon/vect/bit4x8.ll
@@ -0,0 +1,27 @@
+; RUN: llc -march=hexagon < %s | FileCheck %s
+
+; CHECK-LABEL: test_00
+; CHECK: r0 = and(r0,r1)
+; CHECK-NEXT: jumpr r31
+define <4 x i8> @test_00(<4 x i8> %a0, <4 x i8> %a1) #0 {
+ %v0 = and <4 x i8> %a0, %a1
+ ret <4 x i8> %v0
+}
+
+; CHECK-LABEL: test_01
+; CHECK: r0 = or(r0,r1)
+; CHECK-NEXT: jumpr r31
+define <4 x i8> @test_01(<4 x i8> %a0, <4 x i8> %a1) #0 {
+ %v0 = or <4 x i8> %a0, %a1
+ ret <4 x i8> %v0
+}
+
+; CHECK-LABEL: test_02
+; CHECK: r0 = xor(r0,r1)
+; CHECK-NEXT: jumpr r31
+define <4 x i8> @test_02(<4 x i8> %a0, <4 x i8> %a1) #0 {
+ %v0 = xor <4 x i8> %a0, %a1
+ ret <4 x i8> %v0
+}
+
+attributes #0 = { nounwind readnone }
OpenPOWER on IntegriCloud