summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHao Liu <Hao.Liu@arm.com>2014-01-23 02:09:30 +0000
committerHao Liu <Hao.Liu@arm.com>2014-01-23 02:09:30 +0000
commitfa6e5cb5113d6cfb1f1bff3a1539859e33f9722a (patch)
tree2d7b9350991aefe5a1025c1432a1b68452904344 /test
parent4f046e08ffeb10be89292ce2a1bd36d66dacb2a4 (diff)
downloadllvm-fa6e5cb5113d6cfb1f1bff3a1539859e33f9722a.tar.gz
llvm-fa6e5cb5113d6cfb1f1bff3a1539859e33f9722a.tar.bz2
llvm-fa6e5cb5113d6cfb1f1bff3a1539859e33f9722a.tar.xz
[AArch64]Add CHECK for two test cases testing scalar_to_vector committed in r199461.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199861 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/AArch64/neon-copy.ll25
1 files changed, 19 insertions, 6 deletions
diff --git a/test/CodeGen/AArch64/neon-copy.ll b/test/CodeGen/AArch64/neon-copy.ll
index 514689a2e6..9960e15513 100644
--- a/test/CodeGen/AArch64/neon-copy.ll
+++ b/test/CodeGen/AArch64/neon-copy.ll
@@ -967,20 +967,33 @@ entry:
ret <2 x i32> %vecinit1.i
}
-define <2 x float> @test_scalar_to_vector_f32_to_v2f32(<1 x float> %a) {
+
+define <2 x float> @test_scalar_to_vector_f32_to_v2f32(<2 x float> %a) {
+; CHECK-LABEL: test_scalar_to_vector_f32_to_v2f32:
+; CHECK: fmaxp s{{[0-9]+}}, v{{[0-9]+}}.2s
+; CHECK-NEXT: ret
entry:
- %0 = extractelement <1 x float> %a, i32 0
- %vecinit1.i = insertelement <2 x float> undef, float %0, i32 0
+ %0 = call float @llvm.aarch64.neon.vpmax.f32.v2f32(<2 x float> %a)
+ %1 = insertelement <1 x float> undef, float %0, i32 0
+ %2 = extractelement <1 x float> %1, i32 0
+ %vecinit1.i = insertelement <2 x float> undef, float %2, i32 0
ret <2 x float> %vecinit1.i
}
-define <4 x float> @test_scalar_to_vector_f32_to_v4f32(<1 x float> %a) {
+define <4 x float> @test_scalar_to_vector_f32_to_v4f32(<2 x float> %a) {
+; CHECK-LABEL: test_scalar_to_vector_f32_to_v4f32:
+; CHECK: fmaxp s{{[0-9]+}}, v{{[0-9]+}}.2s
+; CHECK-NEXT: ret
entry:
- %0 = extractelement <1 x float> %a, i32 0
- %vecinit1.i = insertelement <4 x float> undef, float %0, i32 0
+ %0 = call float @llvm.aarch64.neon.vpmax.f32.v2f32(<2 x float> %a)
+ %1 = insertelement <1 x float> undef, float %0, i32 0
+ %2 = extractelement <1 x float> %1, i32 0
+ %vecinit1.i = insertelement <4 x float> undef, float %2, i32 0
ret <4 x float> %vecinit1.i
}
+declare float @llvm.aarch64.neon.vpmax.f32.v2f32(<2 x float>)
+
define <16 x i8> @test_concat_v16i8_v16i8_v16i8(<16 x i8> %x, <16 x i8> %y) #0 {
; CHECK-LABEL: test_concat_v16i8_v16i8_v16i8:
; CHECK: ins {{v[0-9]+}}.d[1], {{v[0-9]+}}.d[0]