1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mattr=+sve -force-streaming-compatible-sve < %s | FileCheck %s
3 ; RUN: llc -mattr=+sme -force-streaming-compatible-sve < %s | FileCheck %s
5 target triple = "aarch64-unknown-linux-gnu"
7 define <4 x i32> @test(ptr %arg1, ptr %arg2) {
9 ; CHECK: // %bb.0: // %entry
10 ; CHECK-NEXT: ldp q0, q1, [x0, #32]
11 ; CHECK-NEXT: ldp q3, q4, [x0]
12 ; CHECK-NEXT: add z2.s, z0.s, z0.s
13 ; CHECK-NEXT: add z5.s, z1.s, z1.s
14 ; CHECK-NEXT: mov z0.s, z1.s[2]
15 ; CHECK-NEXT: add z1.s, z3.s, z3.s
16 ; CHECK-NEXT: add z3.s, z4.s, z4.s
17 ; CHECK-NEXT: // kill: def $q0 killed $q0 killed $z0
18 ; CHECK-NEXT: stp q2, q5, [x0, #32]
19 ; CHECK-NEXT: stp q1, q3, [x0]
22 %0 = load <16 x i32>, ptr %arg1, align 256
23 %1 = load <16 x i32>, ptr %arg2, align 256
24 %shvec = shufflevector <16 x i32> %0, <16 x i32> %1, <4 x i32> <i32 14, i32 14, i32 14, i32 14>
25 %2 = add <16 x i32> %0, %0
26 store <16 x i32> %2, ptr %arg1, align 256
30 define <2 x i32> @test2(ptr %arg1, ptr %arg2) {
32 ; CHECK: // %bb.0: // %entry
33 ; CHECK-NEXT: ldp q1, q0, [x0, #32]
34 ; CHECK-NEXT: ldp q3, q4, [x0]
35 ; CHECK-NEXT: add z2.s, z0.s, z0.s
36 ; CHECK-NEXT: ext z0.b, z0.b, z0.b, #8
37 ; CHECK-NEXT: add z1.s, z1.s, z1.s
38 ; CHECK-NEXT: add z3.s, z3.s, z3.s
39 ; CHECK-NEXT: add z4.s, z4.s, z4.s
40 ; CHECK-NEXT: mov z0.s, s0
41 ; CHECK-NEXT: stp q1, q2, [x0, #32]
42 ; CHECK-NEXT: stp q3, q4, [x0]
43 ; CHECK-NEXT: // kill: def $d0 killed $d0 killed $z0
46 %0 = load <16 x i32>, ptr %arg1, align 256
47 %1 = load <16 x i32>, ptr %arg2, align 256
48 %shvec = shufflevector <16 x i32> %0, <16 x i32> %1, <2 x i32> <i32 14, i32 14>
49 %2 = add <16 x i32> %0, %0
50 store <16 x i32> %2, ptr %arg1, align 256