1 ; RUN: llc < %s -mcpu=z196 -mtriple=s390x-linux-gnu -O0 \
2 ; RUN: -stop-before=regallocfast 2>&1 | FileCheck %s
3 ; RUN: llc < %s -mcpu=z196 -mtriple=s390x-linux-gnu -O3 \
4 ; RUN: -stop-before=livevars 2>&1 | FileCheck %s
6 ; Test that copies to/from access registers are handled before regalloc with
9 @x = dso_local thread_local global i32 0, align 4
10 define weak_odr hidden ptr @fun0() {
12 ; CHECK: {{%[0-9]+}}:gr32bit = EAR $a0
13 ; CHECK: {{%[0-9]+}}:gr32bit = EAR $a1
19 ; CHECK: [[VREG0:%[0-9]+]]:gr32bit = COPY %0
20 ; CHECK-NEXT: $a1 = SAR [[VREG0]]
21 ; CHECK: {{%[0-9]+}}:gr32bit = EAR $a0
22 %val = call i32 asm "blah", "={a0}, {a1}" (i32 0)