mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 07:22:55 +01:00
9497a9daca
llvm-svn: 20186
16 lines
357 B
Plaintext
16 lines
357 B
Plaintext
; RUN: llvm-as < %s | 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
|
|
}
|