llvm-6502/test/CodeGen/X86/int-intrinsic.ll
Chris Lattner d80c7e1232 Add a new llvm.x86.int intrinsic, allowing access to the
x86 int and int3 instructions.  Patch by Peter Housel!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111831 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-23 19:39:25 +00:00

21 lines
390 B
LLVM

; RUN: llc < %s -march=x86 | FileCheck %s
; RUN: llc < %s -march=x86-64 | FileCheck %s
declare void @llvm.x86.int(i8) nounwind
; CHECK: int3
; CHECK: ret
define void @primitive_int3 () {
bb.entry:
call void @llvm.x86.int(i8 3) nounwind
ret void
}
; CHECK: int $-128
; CHECK: ret
define void @primitive_int128 () {
bb.entry:
call void @llvm.x86.int(i8 128) nounwind
ret void
}