mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
0f156af831
More details in this thread: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130128/163783.html Patch by JF Bastien git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173943 91177308-0d34-0410-b5e6-96231b3b80d8
58 lines
1.7 KiB
LLVM
58 lines
1.7 KiB
LLVM
; RUN: llc < %s -mtriple=arm-apple-darwin | FileCheck %s -check-prefix=INSTR
|
|
; RUN: llc < %s -mtriple=arm-apple-darwin -trap-func=_trap | FileCheck %s -check-prefix=FUNC
|
|
; RUN: llc -mtriple=armv7-unknown-nacl -filetype=obj %s -o - \
|
|
; RUN: | llvm-objdump -disassemble -triple armv7-unknown-nacl - \
|
|
; RUN: | FileCheck %s -check-prefix=ENCODING-NACL
|
|
; RUN: llc -mtriple=armv7-unknown-nacl -filetype=obj %s -o - \
|
|
; RUN: | llvm-objdump -disassemble -triple armv7 -mattr=+nacl-trap - \
|
|
; RUN: | FileCheck %s -check-prefix=ENCODING-NACL
|
|
; RUN: llc -mtriple=armv7 -mattr=+nacl-trap -filetype=obj %s -o - \
|
|
; RUN: | llvm-objdump -disassemble -triple armv7 -mattr=+nacl-trap - \
|
|
; RUN: | FileCheck %s -check-prefix=ENCODING-NACL
|
|
; RUN: llc -fast-isel -mtriple=armv7-unknown-nacl -filetype=obj %s -o - \
|
|
; RUN: | llvm-objdump -disassemble -triple armv7-unknown-nacl - \
|
|
; RUN: | FileCheck %s -check-prefix=ENCODING-NACL
|
|
; RUN: llc -mtriple=armv7 -filetype=obj %s -o - \
|
|
; RUN: | llvm-objdump -disassemble -triple armv7 - \
|
|
; RUN: | FileCheck %s -check-prefix=ENCODING-ALL
|
|
; RUN: llc -fast-isel -mtriple=armv7 -filetype=obj %s -o - \
|
|
; RUN: | llvm-objdump -disassemble -triple armv7 - \
|
|
; RUN: | FileCheck %s -check-prefix=ENCODING-ALL
|
|
; rdar://7961298
|
|
; rdar://9249183
|
|
|
|
define void @t() nounwind {
|
|
entry:
|
|
; INSTR: t:
|
|
; INSTR: trap
|
|
|
|
; FUNC: t:
|
|
; FUNC: bl __trap
|
|
|
|
; ENCODING-NACL: f0 de fe e7
|
|
|
|
; ENCODING-ALL: fe de ff e7
|
|
|
|
call void @llvm.trap()
|
|
unreachable
|
|
}
|
|
|
|
define void @t2() nounwind {
|
|
entry:
|
|
; INSTR: t2:
|
|
; INSTR: trap
|
|
|
|
; FUNC: t2:
|
|
; FUNC: bl __trap
|
|
|
|
; ENCODING-NACL: f0 de fe e7
|
|
|
|
; ENCODING-ALL: fe de ff e7
|
|
|
|
call void @llvm.debugtrap()
|
|
unreachable
|
|
}
|
|
|
|
declare void @llvm.trap() nounwind
|
|
declare void @llvm.debugtrap() nounwind
|