brintos

brintos / llvm-project-archived public Read only

0
0
Text · 762 B · 6d00dd8 Raw
35 lines · plain
1; Check that modelling of CC/CCRegs does not stop MachineCSE from2; removing a compare.  MachineCSE will not extend a live range of an3; allocatable or reserved phys reg.4;5; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s6 7declare void @bar(i8)8 9; Check the low end of the CH range.10define void @f1(i32 %lhs) {11; CHECK-LABEL: %bb.1:12; CHECK-NOT: cijlh %r0, 1, .LBB0_313 14entry:15  %and188 = and i32 %lhs, 25516  %cmp189 = icmp ult i32 %and188, 217  br i1 %cmp189, label %if.then.191, label %if.else.20118 19if.then.191:20  %cmp194 = icmp eq i32 %and188, 121  br i1 %cmp194, label %if.then.196, label %if.else.19822 23if.then.196:24  call void @bar(i8 1);25  br label %if.else.20126 27if.else.198:28  call void @bar(i8 0);29  br label %if.else.20130 31if.else.201:32  ret void33}34 35