1 ; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
2 ; RUN: lli %t.bc > /dev/null
4 ; This testcase exposes a bug in the local register allocator where it runs out
5 ; of registers (due to too many overlapping live ranges), but then attempts to
6 ; use the ESP register (which is not allocatable) to hold a value.
9 %Ap2 = alloca uint, uint %A ; ESP gets used again...
10 %B = add uint %A, 1 ; Produce lots of overlapping live ranges
21 store uint %A, uint *%Ap2 ; Uses of all of the values
22 store uint %B, uint *%Ap2
23 store uint %C, uint *%Ap2
24 store uint %D, uint *%Ap2
25 store uint %E, uint *%Ap2
26 store uint %F, uint *%Ap2
27 store uint %G, uint *%Ap2
28 store uint %H, uint *%Ap2
29 store uint %I, uint *%Ap2
30 store uint %J, uint *%Ap2
31 store uint %K, uint *%Ap2