mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-20 09:30:43 +00:00
20 lines
379 B
LLVM
20 lines
379 B
LLVM
|
; RUN: llvm-as < %s | llc -march=c | not grep "\-\-65535"
|
||
|
; ModuleID = '<stdin>'
|
||
|
target endian = little
|
||
|
target pointersize = 32
|
||
|
target triple = "i686-pc-linux-gnu"
|
||
|
|
||
|
implementation ; Functions:
|
||
|
|
||
|
declare void %func(int)
|
||
|
|
||
|
void %funcb() {
|
||
|
entry:
|
||
|
%tmp.1 = sub int 0, -65535 ; <int> [#uses=1]
|
||
|
call void %func( int %tmp.1 )
|
||
|
br label %return
|
||
|
|
||
|
return: ; preds = %entry
|
||
|
ret void
|
||
|
}
|