mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
24 lines
554 B
LLVM
24 lines
554 B
LLVM
|
; There is no real check here. If the test doesn't
|
||
|
; assert it passes.
|
||
|
; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 < %s
|
||
|
; Run it again without extra nop in delay slot
|
||
|
; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 -enable-mips-delay-filler < %s
|
||
|
|
||
|
define i32 @bosco1(i32 %x) nounwind readnone {
|
||
|
entry:
|
||
|
%inc = add i32 %x, 1
|
||
|
ret i32 %inc
|
||
|
}
|
||
|
|
||
|
define i32 @bosco2(i32 %x) nounwind readnone {
|
||
|
entry:
|
||
|
%inc = add i32 %x, 1
|
||
|
ret i32 %inc
|
||
|
}
|
||
|
|
||
|
define i32 @bosco3(i32 %x) nounwind readnone {
|
||
|
entry:
|
||
|
%inc = add i32 %x, 1
|
||
|
ret i32 %inc
|
||
|
}
|