2011-03-15 21:45:47 +08: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-07-14 14:24:09 +08:00
|
|
|
; CHECK-LABEL: setsr:
|
2011-03-15 21:45:47 +08:00
|
|
|
; CHECK: setsr 128
|
|
|
|
call void @llvm.xcore.setsr(i32 128)
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
define void @clrsr() nounwind {
|
2013-07-14 14:24:09 +08:00
|
|
|
; CHECK-LABEL: clrsr:
|
2011-03-15 21:45:47 +08:00
|
|
|
; CHECK: clrsr 128
|
|
|
|
call void @llvm.xcore.clrsr(i32 128)
|
|
|
|
ret void
|
|
|
|
}
|