1 ; RUN: llc -mtriple=aarch64-linux-gnu -stop-after=instruction-select < %s | FileCheck %s
3 %struct.__neon_float32x2x2_t = type { <2 x float>, <2 x float> }
4 %struct.__neon_float32x2x3_t = type { <2 x float>, <2 x float>, <2 x float> }
5 %struct.__neon_float32x2x4_t = type { <2 x float>, <2 x float>, <2 x float>, <2 x float> }
7 declare %struct.__neon_float32x2x2_t @llvm.aarch64.neon.ld2.v2f32.p0(ptr)
8 declare %struct.__neon_float32x2x3_t @llvm.aarch64.neon.ld3.v2f32.p0(ptr)
9 declare %struct.__neon_float32x2x4_t @llvm.aarch64.neon.ld4.v2f32.p0(ptr)
11 declare %struct.__neon_float32x2x2_t @llvm.aarch64.neon.ld1x2.v2f32.p0(ptr)
12 declare %struct.__neon_float32x2x3_t @llvm.aarch64.neon.ld1x3.v2f32.p0(ptr)
13 declare %struct.__neon_float32x2x4_t @llvm.aarch64.neon.ld1x4.v2f32.p0(ptr)
15 declare %struct.__neon_float32x2x2_t @llvm.aarch64.neon.ld2r.v2f32.p0(ptr)
16 declare %struct.__neon_float32x2x3_t @llvm.aarch64.neon.ld3r.v2f32.p0(ptr)
17 declare %struct.__neon_float32x2x4_t @llvm.aarch64.neon.ld4r.v2f32.p0(ptr)
19 declare %struct.__neon_float32x2x2_t @llvm.aarch64.neon.ld2lane.v2f32.p0(<2 x float>, <2 x float>, i64, ptr)
20 declare %struct.__neon_float32x2x3_t @llvm.aarch64.neon.ld3lane.v2f32.p0(<2 x float>, <2 x float>, <2 x float>, i64, ptr)
21 declare %struct.__neon_float32x2x4_t @llvm.aarch64.neon.ld4lane.v2f32.p0(<2 x float>, <2 x float>, <2 x float>, <2 x float>, i64, ptr)
24 define %struct.__neon_float32x2x2_t @test_ld2(ptr %addr) {
25 ; CHECK-LABEL: name: test_ld2
26 ; CHECK: LD2Twov2s {{.*}} :: (load (s128) {{.*}})
27 %val = call %struct.__neon_float32x2x2_t @llvm.aarch64.neon.ld2.v2f32.p0(ptr %addr)
28 ret %struct.__neon_float32x2x2_t %val
31 define %struct.__neon_float32x2x3_t @test_ld3(ptr %addr) {
32 ; CHECK-LABEL: name: test_ld3
33 ; CHECK: LD3Threev2s {{.*}} :: (load (s192) {{.*}})
34 %val = call %struct.__neon_float32x2x3_t @llvm.aarch64.neon.ld3.v2f32.p0(ptr %addr)
35 ret %struct.__neon_float32x2x3_t %val
38 define %struct.__neon_float32x2x4_t @test_ld4(ptr %addr) {
39 ; CHECK-LABEL: name: test_ld4
40 ; CHECK: LD4Fourv2s {{.*}} :: (load (s256) {{.*}})
41 %val = call %struct.__neon_float32x2x4_t @llvm.aarch64.neon.ld4.v2f32.p0(ptr %addr)
42 ret %struct.__neon_float32x2x4_t %val
45 define %struct.__neon_float32x2x2_t @test_ld1x2(ptr %addr) {
46 ; CHECK-LABEL: name: test_ld1x2
47 ; CHECK: LD1Twov2s {{.*}} :: (load (s128) {{.*}})
48 %val = call %struct.__neon_float32x2x2_t @llvm.aarch64.neon.ld1x2.v2f32.p0(ptr %addr)
49 ret %struct.__neon_float32x2x2_t %val
52 define %struct.__neon_float32x2x3_t @test_ld1x3(ptr %addr) {
53 ; CHECK-LABEL: name: test_ld1x3
54 ; CHECK: LD1Threev2s {{.*}} :: (load (s192) {{.*}})
55 %val = call %struct.__neon_float32x2x3_t @llvm.aarch64.neon.ld1x3.v2f32.p0(ptr %addr)
56 ret %struct.__neon_float32x2x3_t %val
59 define %struct.__neon_float32x2x4_t @test_ld1x4(ptr %addr) {
60 ; CHECK-LABEL: name: test_ld1x4
61 ; CHECK: LD1Fourv2s {{.*}} :: (load (s256) {{.*}})
62 %val = call %struct.__neon_float32x2x4_t @llvm.aarch64.neon.ld1x4.v2f32.p0(ptr %addr)
63 ret %struct.__neon_float32x2x4_t %val
66 define %struct.__neon_float32x2x2_t @test_ld2r(ptr %addr) {
67 ; CHECK-LABEL: name: test_ld2r
68 ; CHECK: LD2Rv2s {{.*}} :: (load (s64) {{.*}})
69 %val = call %struct.__neon_float32x2x2_t @llvm.aarch64.neon.ld2r.v2f32.p0(ptr %addr)
70 ret %struct.__neon_float32x2x2_t %val
73 define %struct.__neon_float32x2x3_t @test_ld3r(ptr %addr) {
74 ; CHECK-LABEL: name: test_ld3r
75 ; CHECK: LD3Rv2s {{.*}} :: (load (s96) {{.*}})
76 %val = call %struct.__neon_float32x2x3_t @llvm.aarch64.neon.ld3r.v2f32.p0(ptr %addr)
77 ret %struct.__neon_float32x2x3_t %val
80 define %struct.__neon_float32x2x4_t @test_ld4r(ptr %addr) {
81 ; CHECK-LABEL: name: test_ld4r
82 ; CHECK: LD4Rv2s {{.*}} :: (load (s128) {{.*}})
83 %val = call %struct.__neon_float32x2x4_t @llvm.aarch64.neon.ld4r.v2f32.p0(ptr %addr)
84 ret %struct.__neon_float32x2x4_t %val
87 define %struct.__neon_float32x2x2_t @test_ld2lane(<2 x float> %a, <2 x float> %b, ptr %addr) {
88 ; CHECK-LABEL: name: test_ld2lane
89 ; CHECK: {{.*}} LD2i32 {{.*}}
90 %val = call %struct.__neon_float32x2x2_t @llvm.aarch64.neon.ld2lane.v2f32.p0(<2 x float> %a, <2 x float> %b, i64 1, ptr %addr)
91 ret %struct.__neon_float32x2x2_t %val
94 define %struct.__neon_float32x2x3_t @test_ld3lane(<2 x float> %a, <2 x float> %b, <2 x float> %c, ptr %addr) {
95 ; CHECK-LABEL: name: test_ld3lane
96 ; CHECK: {{.*}} LD3i32 {{.*}}
97 %val = call %struct.__neon_float32x2x3_t @llvm.aarch64.neon.ld3lane.v2f32.p0(<2 x float> %a, <2 x float> %b, <2 x float> %c, i64 1, ptr %addr)
98 ret %struct.__neon_float32x2x3_t %val
101 define %struct.__neon_float32x2x4_t @test_ld4lane(<2 x float> %a, <2 x float> %b, <2 x float> %c, <2 x float> %d, ptr %addr) {
102 ; CHECK-LABEL: name: test_ld4lane
103 ; CHECK: {{.*}} LD4i32 {{.*}}
104 %val = call %struct.__neon_float32x2x4_t @llvm.aarch64.neon.ld4lane.v2f32.p0(<2 x float> %a, <2 x float> %b, <2 x float> %c, <2 x float> %d, i64 1, ptr %addr)
105 ret %struct.__neon_float32x2x4_t %val