1 ; RUN: llc -march=xcore < %s | FileCheck %s
3 declare i8 addrspace(1)* @llvm.xcore.getst.p1i8.p1i8(i8 addrspace(1)* %r)
4 declare void @llvm.xcore.msync.p1i8(i8 addrspace(1)* %r)
5 declare void @llvm.xcore.ssync()
6 declare void @llvm.xcore.mjoin.p1i8(i8 addrspace(1)* %r)
7 declare void @llvm.xcore.initsp.p1i8(i8 addrspace(1)* %r, i8* %value)
8 declare void @llvm.xcore.initpc.p1i8(i8 addrspace(1)* %r, i8* %value)
9 declare void @llvm.xcore.initlr.p1i8(i8 addrspace(1)* %r, i8* %value)
10 declare void @llvm.xcore.initcp.p1i8(i8 addrspace(1)* %r, i8* %value)
11 declare void @llvm.xcore.initdp.p1i8(i8 addrspace(1)* %r, i8* %value)
13 define i8 addrspace(1)* @getst(i8 addrspace(1)* %r) {
15 ; CHECK: getst r0, res[r0]
16 %result = call i8 addrspace(1)* @llvm.xcore.getst.p1i8.p1i8(i8 addrspace(1)* %r)
17 ret i8 addrspace(1)* %result
20 define void @ssync() {
23 call void @llvm.xcore.ssync()
27 define void @mjoin(i8 addrspace(1)* %r) {
29 ; CHECK: mjoin res[r0]
30 call void @llvm.xcore.mjoin.p1i8(i8 addrspace(1)* %r)
34 define void @initsp(i8 addrspace(1)* %t, i8* %src) {
36 ; CHECK: init t[r0]:sp, r1
37 call void @llvm.xcore.initsp.p1i8(i8 addrspace(1)* %t, i8* %src)
41 define void @initpc(i8 addrspace(1)* %t, i8* %src) {
43 ; CHECK: init t[r0]:pc, r1
44 call void @llvm.xcore.initpc.p1i8(i8 addrspace(1)* %t, i8* %src)
48 define void @initlr(i8 addrspace(1)* %t, i8* %src) {
50 ; CHECK: init t[r0]:lr, r1
51 call void @llvm.xcore.initlr.p1i8(i8 addrspace(1)* %t, i8* %src)
55 define void @initcp(i8 addrspace(1)* %t, i8* %src) {
57 ; CHECK: init t[r0]:cp, r1
58 call void @llvm.xcore.initcp.p1i8(i8 addrspace(1)* %t, i8* %src)
62 define void @initdp(i8 addrspace(1)* %t, i8* %src) {
64 ; CHECK: init t[r0]:dp, r1
65 call void @llvm.xcore.initdp.p1i8(i8 addrspace(1)* %t, i8* %src)