1 # RUN: llc -mtriple=s390x-linux-gnu -mcpu=z14 -start-before=greedy %s -o - \
4 # Test that folding does not occur if it would introduce a clobbering of a live CC.
7 define void @fun0(double %arg0, double %arg1, ptr %Dst) { ret void }
12 # CHECK: ld %f1, 160(%r15) # 8-byte Folded Reload
13 # CHECK-NEXT: wfadb %f0, %f0, %f1
17 tracksRegLiveness: true
19 - { id: 0, class: fp64bit }
20 - { id: 1, class: fp64bit }
21 - { id: 2, class: addr64bit }
22 - { id: 3, class: vr64bit }
23 - { id: 4, class: gr64bit }
25 - { reg: '$f0d', virtual-reg: '%0' }
26 - { reg: '$f2d', virtual-reg: '%1' }
27 - { reg: '$r2d', virtual-reg: '%2' }
30 machineFunctionInfo: {}
33 liveins: $f0d, $f2d, $r2d
35 %2:addr64bit = COPY $r2d
36 %1:fp64bit = COPY $f2d
37 %0:fp64bit = COPY $f0d
38 CDBR %0, %1, implicit-def $cc, implicit $fpc
39 INLINEASM &"", 1, 12, implicit-def dead early-clobber $r0d, 12, implicit-def dead early-clobber $r1d, 12, implicit-def dead early-clobber $r2d, 12, implicit-def dead early-clobber $r3d, 12, implicit-def dead early-clobber $r4d, 12, implicit-def dead early-clobber $r5d, 12, implicit-def dead early-clobber $r6d, 12, implicit-def dead early-clobber $r7d, 12, implicit-def dead early-clobber $r8d, 12, implicit-def dead early-clobber $r9d, 12, implicit-def dead early-clobber $r10d, 12, implicit-def dead early-clobber $r11d, 12, implicit-def dead early-clobber $r12d, 12, implicit-def dead early-clobber $r13d, 12, implicit-def dead early-clobber $r14d, 12, implicit-def dead early-clobber $f1d, 12, implicit-def dead early-clobber $f2d, 12, implicit-def dead early-clobber $f3d, 12, implicit-def dead early-clobber $f4d, 12, implicit-def dead early-clobber $f5d, 12, implicit-def dead early-clobber $f6d, 12, implicit-def dead early-clobber $f7d, 12, implicit-def dead early-clobber $f8d, 12, implicit-def dead early-clobber $f9d, 12, implicit-def dead early-clobber $f10d, 12, implicit-def dead early-clobber $f11d, 12, implicit-def dead early-clobber $f12d, 12, implicit-def dead early-clobber $f13d, 12, implicit-def dead early-clobber $f14d, 12, implicit-def dead early-clobber $f14d, 12, implicit-def dead early-clobber $f15d
40 %3:vr64bit = nofpexcept WFADB %0, %1, implicit $fpc
42 %4:gr64bit = LOCGHI %4, 1, 14, 8, implicit killed $cc
43 VST64 %3, %2, 0, $noreg :: (store (s64) into %ir.Dst)