1 ; RUN: llc < %s -march=xcore | FileCheck %s
2 declare i32 @llvm.xcore.getps(i32)
3 declare void @llvm.xcore.setps(i32, i32)
5 define i32 @getps(i32 %reg) nounwind {
7 ; CHECK: get r0, ps[r0]
8 %result = call i32 @llvm.xcore.getps(i32 %reg)
13 define void @setps(i32 %reg, i32 %value) nounwind {
15 ; CHECK: set ps[r0], r1
16 call void @llvm.xcore.setps(i32 %reg, i32 %value)