1; RUN: llc < %s -march=xcore | FileCheck %s
2declare i32 @llvm.xcore.getps(i32)
3declare void @llvm.xcore.setps(i32, i32)
4
5define i32 @getps(i32 %reg) nounwind {
6; CHECK-LABEL: getps:
7; CHECK: get r0, ps[r0]
8	%result = call i32 @llvm.xcore.getps(i32 %reg)
9	ret i32 %result
10}
11
12
13define void @setps(i32 %reg, i32 %value) nounwind {
14; CHECK-LABEL: setps:
15; CHECK: set ps[r0], r1
16	call void @llvm.xcore.setps(i32 %reg, i32 %value)
17	ret void
18}
19