mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-11 08:07:22 +00:00
69ccadd753
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32115 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
372 B
Plaintext
16 lines
372 B
Plaintext
; 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
|
|
}
|