1 ; RUN: llvm-upgrade < %s | llvm-as | llc
3 ; This caused a problem because the argument of a call was defined by
4 ; the return value of another call that appears later in the code.
5 ; When processing the first call, the second call has not yet been processed
6 ; so no LiveRange has been created for its return value.
8 ; llc dies in UltraSparcRegInfo::suggestRegs4CallArgs() with:
9 ; ERROR: In call instr, no LR for arg: 0x1009e0740
11 implementation ; Functions:
13 declare int %getInt(int);
15 int %main(int %argc, sbyte** %argv) {
20 %reg222 = call int (int)* %getInt(int %reg218) ;; ARG #1 HAS NO LR
21 %reg110 = add int %reg222, 1
22 %b = setle int %reg110, 0
23 br bool %b, label %bb2, label %bb3
26 %reg218 = call int (int)* %getInt(int %argc) ;; THIS CALL NOT YET SEEN