mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
14 lines
325 B
LLVM
14 lines
325 B
LLVM
|
; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -soft-float -mips16-hard-float -relocation-model=pic < %s | FileCheck %s -check-prefix=pic
|
||
|
|
||
|
declare void @llvm.trap()
|
||
|
|
||
|
; Function Attrs: nounwind optsize readnone
|
||
|
define i32 @main() {
|
||
|
entry:
|
||
|
call void @llvm.trap()
|
||
|
unreachable
|
||
|
; pic: break 0
|
||
|
ret i32 0
|
||
|
}
|
||
|
|