diff options
author | Richard Osborne <richard@xmos.com> | 2011-02-23 16:46:37 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2011-02-23 16:46:37 +0000 |
commit | 292f62e06f15eb45008c6965a5d9f7e9713431e9 (patch) | |
tree | 4e2f4b8c107998fb56a8359b851a56ae30298f02 /test/CodeGen | |
parent | 2254d0eaa1821eb243b9dbcbeaa31c784dc99fa3 (diff) |
Add XCore intrinsic for the setv instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126315 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/XCore/resources.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/XCore/resources.ll b/test/CodeGen/XCore/resources.ll index 695efec26b..b34331fa61 100644 --- a/test/CodeGen/XCore/resources.ll +++ b/test/CodeGen/XCore/resources.ll @@ -17,6 +17,7 @@ declare void @llvm.xcore.setpt.p1i8(i8 addrspace(1)* %r, i32 %value) declare i32 @llvm.xcore.getts.p1i8(i8 addrspace(1)* %r) declare void @llvm.xcore.syncr.p1i8(i8 addrspace(1)* %r) declare void @llvm.xcore.settw.p1i8(i8 addrspace(1)* %r, i32 %value) +declare void @llvm.xcore.setv.p1i8(i8 addrspace(1)* %r, i8* %p) define i8 addrspace(1)* @getr() { ; CHECK: getr: @@ -157,3 +158,11 @@ define void @settw(i8 addrspace(1)* %r, i32 %value) { call void @llvm.xcore.settw.p1i8(i8 addrspace(1)* %r, i32 %value) ret void } + +define void @setv(i8 addrspace(1)* %r, i8* %p) { +; CHECK: setv: +; CHECK: mov r11, r1 +; CHECK-NEXT: setv res[r0], r11 + call void @llvm.xcore.setv.p1i8(i8 addrspace(1)* %r, i8* %p) + ret void +} |