xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/2012-07-16-LeaUndef.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86-64 -mcpu=corei7
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdefine void @autogen_SD2543() {
4*9880d681SAndroid Build Coastguard WorkerA:
5*9880d681SAndroid Build Coastguard Worker  %E83 = add i32 0, 1
6*9880d681SAndroid Build Coastguard Worker  %E820 = add i32 0, undef
7*9880d681SAndroid Build Coastguard Worker  br label %C
8*9880d681SAndroid Build Coastguard WorkerC:
9*9880d681SAndroid Build Coastguard Worker  %B908 = add i32 %E83, %E820
10*9880d681SAndroid Build Coastguard Worker  store i32 %B908, i32* undef
11*9880d681SAndroid Build Coastguard Worker  %Sl2391 = select i1 undef, i32 undef, i32 %E83
12*9880d681SAndroid Build Coastguard Worker  %Cmp3114 = icmp ne i32 %Sl2391, undef
13*9880d681SAndroid Build Coastguard Worker  br i1 %Cmp3114, label %C, label %G
14*9880d681SAndroid Build Coastguard WorkerG:
15*9880d681SAndroid Build Coastguard Worker  ret void
16*9880d681SAndroid Build Coastguard Worker}
17