Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / CodeGen / Generic / 2004-05-09-LiveVarPartialRegister.llx
1 ; RUN: llvm-upgrade < %s | llvm-as | llc
2
3 %global_long_1 = linkonce global long 7
4 %global_long_2 = linkonce global long 49
5
6 implementation   ; Functions:
7
8 int %main() {
9         %l1 = load long* %global_long_1
10         %l2 = load long* %global_long_2
11         %cond = setle long %l1, %l2
12         %cast2 = cast bool %cond to int
13         %RV = sub int 1, %cast2
14         ret int %RV
15 }