1 ; Test explicit register names.
3 ; RUN: llc < %s -verify-machineinstrs -mtriple=s390x-linux-gnu -no-integrated-as \
13 %ret = call i32 asm "blah $0", "={r4},0" (i32 1)
24 %ret = call i64 asm "blah $0", "={r4},0" (i64 1)
35 %ret = call float asm "blah $0", "={f4},0" (float 0.0)
46 %ret = call double asm "blah $0", "={f4},0" (double 0.0)
51 define void @f5(fp128 *%dest) {
55 ; CHECK-DAG: std %f4, 0(%r2)
56 ; CHECK-DAG: std %f6, 8(%r2)
58 %ret = call fp128 asm "blah $0", "={f4},0" (fp128 0xL00000000000000000000000000000000)
59 store fp128 %ret, fp128 *%dest
63 ; Test clobbers of GPRs and CC.
64 define i32 @f6(i32 %in) {
66 ; CHECK: lr [[REG:%r[01345]]], %r2
68 ; CHECK: lr %r2, [[REG]]
70 call void asm sideeffect "blah", "~{r2},~{cc}"()
74 ; Test clobbers of FPRs and CC.
75 define float @f7(float %in) {
77 ; CHECK: ler [[REG:%f[1-7]]], %f0
79 ; CHECK: ler %f0, [[REG]]
81 call void asm sideeffect "blah", "~{f0},~{cc}"()
85 ; Test that both registers in a GR128 pair get hoisted.
86 define void @f8(i32 %count) {
88 ; CHECK-DAG: lhi %r0, 0
89 ; CHECK-DAG: lhi %r1, 1
92 ; CHECK: blah %r0, %r1
98 %this = phi i32 [ %count, %entry ], [ %next, %loop ]
99 call void asm sideeffect "blah $0, $1", "{r0},{r1}" (i32 0, i32 1)
100 %next = sub i32 %this, 1
101 %cmp = icmp ne i32 %next, 0
102 br i1 %cmp, label %loop, label %exit