mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
5aad8b3e78
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127678 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
353 B
LLVM
19 lines
353 B
LLVM
; RUN: llc < %s -march=xcore | FileCheck %s
|
|
declare void @llvm.xcore.setsr(i32)
|
|
declare void @llvm.xcore.clrsr(i32)
|
|
|
|
define void @setsr() nounwind {
|
|
; CHECK: setsr:
|
|
; CHECK: setsr 128
|
|
call void @llvm.xcore.setsr(i32 128)
|
|
ret void
|
|
}
|
|
|
|
|
|
define void @clrsr() nounwind {
|
|
; CHECK: clrsr:
|
|
; CHECK: clrsr 128
|
|
call void @llvm.xcore.clrsr(i32 128)
|
|
ret void
|
|
}
|