1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; Test incoming i128 arguments.
4 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
6 ; Do some arithmetic so that we can see the register being used.
7 define void @f1(ptr %r2, i16 %r3, i32 %r4, i64 %r5, i128 %r6) {
10 ; CHECK-NEXT: vl %v0, 0(%r6), 3
11 ; CHECK-NEXT: vaq %v0, %v0, %v0
12 ; CHECK-NEXT: vst %v0, 0(%r2), 3
14 %y = add i128 %r6, %r6
15 store i128 %y, ptr %r2
19 ; Test a case where the i128 address is passed on the stack.
20 define void @f2(ptr %r2, i16 %r3, i32 %r4, i64 %r5, i128 %r6, i64 %s1, i64 %s2, i128 %s4) {
23 ; CHECK-NEXT: lg %r1, 176(%r15)
24 ; CHECK-NEXT: vl %v0, 0(%r1), 3
25 ; CHECK-NEXT: vaq %v0, %v0, %v0
26 ; CHECK-NEXT: vst %v0, 0(%r2), 3
28 %y = add i128 %s4, %s4
29 store i128 %y, ptr %r2
33 ; Explicit i128 return values are likewise passed indirectly.
34 define i128 @f14(i128 %r3) {
37 ; CHECK-NEXT: vl %v0, 0(%r3), 3
38 ; CHECK-NEXT: vaq %v0, %v0, %v0
39 ; CHECK-NEXT: vst %v0, 0(%r2), 3
41 %y = add i128 %r3, %r3