diff options
Diffstat (limited to 'test/CodeGen/AArch64/neon-scalar-copy.ll')
-rw-r--r-- | test/CodeGen/AArch64/neon-scalar-copy.ll | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/test/CodeGen/AArch64/neon-scalar-copy.ll b/test/CodeGen/AArch64/neon-scalar-copy.ll index 94ef7d96ac..fadd73484e 100644 --- a/test/CodeGen/AArch64/neon-scalar-copy.ll +++ b/test/CodeGen/AArch64/neon-scalar-copy.ll @@ -7,9 +7,18 @@ define float @test_dup_sv2S(<2 x float> %v) { ret float %tmp1 } +define float @test_dup_sv2S_0(<2 x float> %v) { + ;CHECK-LABEL: test_dup_sv2S_0 + ;CHECK-NOT: dup {{s[0-9]+}}, {{v[0-9]+}}.s[0] + ;CHECK: ret + %tmp1 = extractelement <2 x float> %v, i32 0 + ret float %tmp1 +} + define float @test_dup_sv4S(<4 x float> %v) { - ;CHECK: test_dup_sv4S - ;CHECK: dup {{s[0-9]+}}, {{v[0-9]+}}.s[0] + ;CHECK-LABEL: test_dup_sv4S + ;CHECK-NOT: dup {{s[0-9]+}}, {{v[0-9]+}}.s[0] + ;CHECK: ret %tmp1 = extractelement <4 x float> %v, i32 0 ret float %tmp1 } @@ -29,6 +38,14 @@ define double @test_dup_dv2D(<2 x double> %v) { ret double %tmp1 } +define double @test_dup_dv2D_0(<2 x double> %v) { + ;CHECK: test_dup_dv2D_0 + ;CHECK-NOT: dup {{d[0-9]+}}, {{v[0-9]+}}.d[0] + ;CHECK: ret + %tmp1 = extractelement <2 x double> %v, i32 1 + ret double %tmp1 +} + define <1 x i8> @test_vector_dup_bv16B(<16 x i8> %v1) { ;CHECK: test_vector_dup_bv16B ;CHECK: dup {{b[0-9]+}}, {{v[0-9]+}}.b[14] |