1 # RUN: llc -mtriple=s390x-linux-gnu -mcpu=z10 -no-integrated-as -start-after=block-placement %s -o - | FileCheck %s
2 # Test that LTEBR is used without an unnecessary LER
5 define float @f15(float %val, float %dummy, float* %dest) {
7 call void asm sideeffect "blah $0", "{f2}"(float %val)
8 %cmp = fcmp olt float %val, 0.000000e+00
9 br i1 %cmp, label %exit, label %store
11 store: ; preds = %entry
12 store float %val, float* %dest
15 exit: ; preds = %store, %entry
21 # CHECK: ltebr %f2, %f0
25 tracksRegLiveness: true
27 - { reg: '$f0s', virtual-reg: '' }
28 - { reg: '$r2d', virtual-reg: '' }
33 LTEBRCompare $f0s, $f0s, implicit-def $cc, implicit $fpc
35 INLINEASM &"blah $0", 1, 9, $f2s
36 CondReturn 15, 4, implicit $f0s, implicit $cc
41 STE $f0s, killed $r2d, 0, $noreg :: (store 4 into %ir.dest)