mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 02:32:08 +00:00
d80c7e1232
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
21 lines
390 B
LLVM
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
|
|
}
|