mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
4a8068f19a
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5261 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
420 B
LLVM
19 lines
420 B
LLVM
|
|
implementation ; Functions:
|
|
|
|
declare void %__main()
|
|
|
|
int %foo(int %X, int %Y, double %A) {
|
|
bb0: ; No predecessors!
|
|
%cond212 = setne double %A, 1.000000e+00 ; <bool> [#uses=1]
|
|
%cast110 = cast bool %cond212 to int ; <int> [#uses=1]
|
|
ret int %cast110
|
|
}
|
|
|
|
int %main() {
|
|
bb0: ; No predecessors!
|
|
call void %__main( )
|
|
%reg212 = call int %foo( int 0, int 1, double 1.000000e+00 ) ; <int> [#uses=1]
|
|
ret int %reg212
|
|
}
|