diff options
author | Richard Osborne <richard@xmos.com> | 2011-02-23 14:45:03 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2011-02-23 14:45:03 +0000 |
commit | 2a2cb2852632f2008acdd43a7a6501fc5c6b951c (patch) | |
tree | f9ef4fc011f69e9c0251b7d580233b2fb1f47738 /test/CodeGen/XCore/resources.ll | |
parent | 438208e8cb29c67b2177619a339b84291729b6b7 (diff) | |
download | external_llvm-2a2cb2852632f2008acdd43a7a6501fc5c6b951c.zip external_llvm-2a2cb2852632f2008acdd43a7a6501fc5c6b951c.tar.gz external_llvm-2a2cb2852632f2008acdd43a7a6501fc5c6b951c.tar.bz2 |
Add XCore intrinsic for settw instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126313 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/XCore/resources.ll')
-rw-r--r-- | test/CodeGen/XCore/resources.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/XCore/resources.ll b/test/CodeGen/XCore/resources.ll index b7cda58..695efec 100644 --- a/test/CodeGen/XCore/resources.ll +++ b/test/CodeGen/XCore/resources.ll @@ -16,6 +16,7 @@ declare i32 @llvm.xcore.outshr.p1i8(i8 addrspace(1)* %r, i32 %value) 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) define i8 addrspace(1)* @getr() { ; CHECK: getr: @@ -149,3 +150,10 @@ define void @syncr(i8 addrspace(1)* %r) { call void @llvm.xcore.syncr.p1i8(i8 addrspace(1)* %r) ret void } + +define void @settw(i8 addrspace(1)* %r, i32 %value) { +; CHECK: settw: +; CHECK: settw res[r0], r1 + call void @llvm.xcore.settw.p1i8(i8 addrspace(1)* %r, i32 %value) + ret void +} |