64ac736ec5
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
19 lines
365 B
LLVM
19 lines
365 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-LABEL: setsr:
|
|
; CHECK: setsr 128
|
|
call void @llvm.xcore.setsr(i32 128)
|
|
ret void
|
|
}
|
|
|
|
|
|
define void @clrsr() nounwind {
|
|
; CHECK-LABEL: clrsr:
|
|
; CHECK: clrsr 128
|
|
call void @llvm.xcore.clrsr(i32 128)
|
|
ret void
|
|
}
|