2011-05-02 19:34:44 +00:00
|
|
|
; RUN: llc < %s -march=xcore | FileCheck %s
|
|
|
|
declare void @llvm.xcore.setsr(i32)
|
|
|
|
declare void @llvm.xcore.clrsr(i32)
|
|
|
|
|
|
|
|
define void @setsr() nounwind {
|
2013-12-22 00:04:03 +00:00
|
|
|
; CHECK-LABEL: setsr:
|
2011-05-02 19:34:44 +00:00
|
|
|
; CHECK: setsr 128
|
|
|
|
call void @llvm.xcore.setsr(i32 128)
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
define void @clrsr() nounwind {
|
2013-12-22 00:04:03 +00:00
|
|
|
; CHECK-LABEL: clrsr:
|
2011-05-02 19:34:44 +00:00
|
|
|
; CHECK: clrsr 128
|
|
|
|
call void @llvm.xcore.clrsr(i32 128)
|
|
|
|
ret void
|
|
|
|
}
|