llvm.org GIT mirror llvm / release_20 test / CodeGen / Generic / 2004-05-09-LiveVarPartialRegister.llx
release_20

Tree @release_20 (Download .tar.gz)

2004-05-09-LiveVarPartialRegister.llx @release_20raw · history · blame

; RUN: llvm-upgrade < %s | llvm-as | llc

%global_long_1 = linkonce global long 7
%global_long_2 = linkonce global long 49

implementation   ; Functions:

int %main() {
        %l1 = load long* %global_long_1
        %l2 = load long* %global_long_2
        %cond = setle long %l1, %l2
        %cast2 = cast bool %cond to int
	%RV = sub int 1, %cast2
        ret int %RV
}