1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; Test the handling of named short vector arguments.
4 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s -check-prefix=CHECK-VEC
5 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s -check-prefix=CHECK-STACK
7 ; This routine has 12 vector arguments, which fill up %v24-%v31
8 ; and the four single-wide stack slots starting at 160.
9 declare void @bar(<1 x i8>, <2 x i8>, <4 x i8>, <8 x i8>,
10 <1 x i8>, <2 x i8>, <4 x i8>, <8 x i8>,
11 <1 x i8>, <2 x i8>, <4 x i8>, <8 x i8>)
14 ; CHECK-VEC-LABEL: foo:
16 ; CHECK-VEC-NEXT: stmg %r14, %r15, 112(%r15)
17 ; CHECK-VEC-NEXT: .cfi_offset %r14, -48
18 ; CHECK-VEC-NEXT: .cfi_offset %r15, -40
19 ; CHECK-VEC-NEXT: aghi %r15, -192
20 ; CHECK-VEC-NEXT: .cfi_def_cfa_offset 352
21 ; CHECK-VEC-NEXT: larl %r1, .LCPI0_0
22 ; CHECK-VEC-NEXT: vl %v0, 0(%r1), 3
23 ; CHECK-VEC-NEXT: larl %r1, .LCPI0_1
24 ; CHECK-VEC-NEXT: vst %v0, 176(%r15), 3
25 ; CHECK-VEC-NEXT: vl %v0, 0(%r1), 3
26 ; CHECK-VEC-NEXT: vrepib %v24, 1
27 ; CHECK-VEC-NEXT: vrepib %v26, 2
28 ; CHECK-VEC-NEXT: vrepib %v28, 3
29 ; CHECK-VEC-NEXT: vrepib %v30, 4
30 ; CHECK-VEC-NEXT: vrepib %v25, 5
31 ; CHECK-VEC-NEXT: vrepib %v27, 6
32 ; CHECK-VEC-NEXT: vrepib %v29, 7
33 ; CHECK-VEC-NEXT: vrepib %v31, 8
34 ; CHECK-VEC-NEXT: vst %v0, 160(%r15), 3
35 ; CHECK-VEC-NEXT: brasl %r14, bar@PLT
36 ; CHECK-VEC-NEXT: lmg %r14, %r15, 304(%r15)
37 ; CHECK-VEC-NEXT: br %r14
39 ; CHECK-STACK-LABEL: foo:
40 ; CHECK-STACK: # %bb.0:
41 ; CHECK-STACK-NEXT: stmg %r14, %r15, 112(%r15)
42 ; CHECK-STACK-NEXT: .cfi_offset %r14, -48
43 ; CHECK-STACK-NEXT: .cfi_offset %r15, -40
44 ; CHECK-STACK-NEXT: aghi %r15, -192
45 ; CHECK-STACK-NEXT: .cfi_def_cfa_offset 352
46 ; CHECK-STACK-NEXT: larl %r1, .LCPI0_0
47 ; CHECK-STACK-NEXT: vl %v0, 0(%r1), 3
48 ; CHECK-STACK-NEXT: larl %r1, .LCPI0_1
49 ; CHECK-STACK-NEXT: vst %v0, 176(%r15), 3
50 ; CHECK-STACK-NEXT: vl %v0, 0(%r1), 3
51 ; CHECK-STACK-NEXT: vrepib %v24, 1
52 ; CHECK-STACK-NEXT: vrepib %v26, 2
53 ; CHECK-STACK-NEXT: vrepib %v28, 3
54 ; CHECK-STACK-NEXT: vrepib %v30, 4
55 ; CHECK-STACK-NEXT: vrepib %v25, 5
56 ; CHECK-STACK-NEXT: vrepib %v27, 6
57 ; CHECK-STACK-NEXT: vrepib %v29, 7
58 ; CHECK-STACK-NEXT: vrepib %v31, 8
59 ; CHECK-STACK-NEXT: vst %v0, 160(%r15), 3
60 ; CHECK-STACK-NEXT: brasl %r14, bar@PLT
61 ; CHECK-STACK-NEXT: lmg %r14, %r15, 304(%r15)
62 ; CHECK-STACK-NEXT: br %r14
69 call void @bar (<1 x i8> <i8 1>,
70 <2 x i8> <i8 2, i8 2>,
71 <4 x i8> <i8 3, i8 3, i8 3, i8 3>,
72 <8 x i8> <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>,
74 <2 x i8> <i8 6, i8 6>,
75 <4 x i8> <i8 7, i8 7, i8 7, i8 7>,
76 <8 x i8> <i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8>,
78 <2 x i8> <i8 10, i8 10>,
79 <4 x i8> <i8 11, i8 11, i8 11, i8 11>,
80 <8 x i8> <i8 12, i8 12, i8 12, i8 12, i8 12, i8 12, i8 12, i8 12>)