xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/live-out-reg-info.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86-64 | grep testb
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; Make sure dagcombine doesn't eliminate the comparison due
4*9880d681SAndroid Build Coastguard Worker; to an off-by-one bug with computeKnownBits information.
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdeclare void @qux()
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Workerdefine void @foo(i32 %a) {
9*9880d681SAndroid Build Coastguard Worker  %t0 = lshr i32 %a, 23
10*9880d681SAndroid Build Coastguard Worker  br label %next
11*9880d681SAndroid Build Coastguard Workernext:
12*9880d681SAndroid Build Coastguard Worker  %t1 = and i32 %t0, 256
13*9880d681SAndroid Build Coastguard Worker  %t2 = icmp eq i32 %t1, 0
14*9880d681SAndroid Build Coastguard Worker  br i1 %t2, label %true, label %false
15*9880d681SAndroid Build Coastguard Workertrue:
16*9880d681SAndroid Build Coastguard Worker  call void @qux()
17*9880d681SAndroid Build Coastguard Worker  ret void
18*9880d681SAndroid Build Coastguard Workerfalse:
19*9880d681SAndroid Build Coastguard Worker  ret void
20*9880d681SAndroid Build Coastguard Worker}
21