1 # RUN: llc -mtriple=s390x-linux-gnu -mcpu=z13 -start-before=greedy %s -o - \
4 # Test that regalloc manages (via regalloc hints) to avoid a LOCRMux jump
9 declare i8* @foo(i8*, i32 signext, i32 signext) local_unnamed_addr
11 define i8* @fun(i8* returned) {
14 ; <label>:2: ; preds = %6, %1
15 %3 = zext i16 undef to i32
16 switch i32 %3, label %4 [
21 ; <label>:4: ; preds = %2
24 ; <label>:5: ; preds = %2
27 ; <label>:6: ; preds = %5, %4, %2
28 %7 = phi i32 [ 4, %2 ], [ undef, %4 ], [ 10, %5 ]
29 %8 = call i8* @foo(i8* undef, i32 signext undef, i32 signext %7)
41 tracksRegLiveness: true
43 - { id: 0, class: gr32bit }
44 - { id: 1, class: gr64bit }
45 - { id: 2, class: grx32bit }
46 - { id: 3, class: grx32bit }
47 - { id: 4, class: grx32bit }
48 - { id: 5, class: grx32bit }
49 - { id: 6, class: grx32bit }
50 - { id: 7, class: gr64bit }
51 - { id: 8, class: gr64bit }
52 - { id: 9, class: gr64bit }
53 - { id: 10, class: gr64bit }
54 - { id: 11, class: gr32bit }
64 CHIMux %3, 0, implicit-def $cc
65 %0 = LOCRMux undef %0, %5, 14, 6, implicit $cc
66 %0 = LOCRMux %0, %2, 14, 6, implicit killed $cc
71 CallBRASL @foo, undef $r2d, killed $r3d, killed $r4d, csr_systemz, implicit-def dead $r14d, implicit-def dead $cc, implicit-def dead $r2d