mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-08 23:55:03 +00:00
19 lines
463 B
LLVM
19 lines
463 B
LLVM
|
;RUN: llc -mtriple=armv7-apple-darwin -show-mc-encoding < %s | FileCheck %s
|
||
|
|
||
|
|
||
|
;FIXME: Once the ARM integrated assembler is up and going, these sorts of tests
|
||
|
; should run on .s source files rather than using llc to generate the
|
||
|
; assembly.
|
||
|
|
||
|
define i32 @foo(i32 %a, i32 %b) nounwind ssp {
|
||
|
entry:
|
||
|
; CHECK: foo
|
||
|
; CHECK: 0xf0,0x00,0xf0,0x07
|
||
|
; CHECK: 0x1e,0xff,0x2f,0x01
|
||
|
|
||
|
tail call void @llvm.trap()
|
||
|
ret i32 undef
|
||
|
}
|
||
|
|
||
|
declare void @llvm.trap() nounwind
|