summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Hahn <florian.hahn@arm.com>2017-08-23 11:53:24 +0000
committerFlorian Hahn <florian.hahn@arm.com>2017-08-23 11:53:24 +0000
commit5b9296009173b2a8c0582e0e88e0cab1ea4e5d27 (patch)
tree8da02739f6b3ecee7e59c2d039b240178f3d15aa
parent1aa18f206362ca24fe105e4c95836cb3eea66e36 (diff)
downloadbcm5719-llvm-5b9296009173b2a8c0582e0e88e0cab1ea4e5d27.tar.gz
bcm5719-llvm-5b9296009173b2a8c0582e0e88e0cab1ea4e5d27.zip
[ARM] Check for assembler instructions in test.
Currently this test causes test failures on some machines, due to isel not being registered. Update the test to run all passes and check emitted assembly instructions for now. llvm-svn: 311545
-rw-r--r--llvm/test/CodeGen/ARM/arm-insert-subvector.ll19
1 files changed, 10 insertions, 9 deletions
diff --git a/llvm/test/CodeGen/ARM/arm-insert-subvector.ll b/llvm/test/CodeGen/ARM/arm-insert-subvector.ll
index f879343805c..e4739281a03 100644
--- a/llvm/test/CodeGen/ARM/arm-insert-subvector.ll
+++ b/llvm/test/CodeGen/ARM/arm-insert-subvector.ll
@@ -1,33 +1,34 @@
-; RUN: llc -start-before=isel -stop-after=isel -mtriple armv8-unknown-linux -o - < %s | FileCheck %s
+; RUN: llc -mtriple armv8-unknown-linux -o - < %s | FileCheck %s
define <2 x float> @test_float(<6 x float>* %src) {
%v= load <6 x float>, <6 x float>* %src, align 1
%r = shufflevector <6 x float> %v, <6 x float> undef, <2 x i32> <i32 2, i32 5>
ret <2 x float> %r
}
-; CHECK: name: test_float
-; CHECK: INSERT_SUBREG
+; CHECK-LABEL: test_float
+; CHECK: vld3.32 {d16, d17, d18}, [r0]
define <2 x i32> @test_i32(<6 x i32>* %src) {
%v= load <6 x i32>, <6 x i32>* %src, align 1
%r = shufflevector <6 x i32> %v, <6 x i32> undef, <2 x i32> <i32 2, i32 5>
ret <2 x i32> %r
}
-; CHECK: name: test_i32
-; CHECK: INSERT_SUBREG
+; CHECK-LABEL: test_i32
+; CHECK: vld3.32 {d16, d17, d18}, [r0]
define <4 x i16> @test_i16(<12 x i16>* %src) {
%v= load <12 x i16>, <12 x i16>* %src, align 1
%r = shufflevector <12 x i16> %v, <12 x i16> undef, <4 x i32> <i32 2, i32 5, i32 8, i32 7>
ret <4 x i16> %r
}
-; CHECK: name: test_i16
-; CHECK: INSERT_SUBREG
+; CHECK-LABEL: test_i16
+; CHECK: vld1.8 {d16, d17}, [r0]!
+; CHECK: vmov.u16 r1, d16[2]
define <8 x i8> @test_i8(<24 x i8>* %src) {
%v= load <24 x i8>, <24 x i8>* %src, align 1
%r = shufflevector <24 x i8> %v, <24 x i8> undef, <8 x i32> <i32 2, i32 5, i32 8, i32 11, i32 14, i32 17, i32 20, i32 23>
ret <8 x i8> %r
}
-; CHECK: name: test_i8
-; CHECK: INSERT_SUBREG
+; CHECK-LABEL: test_i8
+; CHECK: vld3.8 {d16, d17, d18}, [r0]
OpenPOWER on IntegriCloud