summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Sparc
diff options
context:
space:
mode:
authorJames Y Knight <jyknight@google.com>2015-05-18 16:38:47 +0000
committerJames Y Knight <jyknight@google.com>2015-05-18 16:38:47 +0000
commitf7e7017281738ac64bb137d8900f96fe9c7fbc21 (patch)
tree6fddd9a37683e0752daa5786e8096f4f2dbddb9f /llvm/test/MC/Sparc
parent24060be73ac17046cdd05c384ed23aa346148f3c (diff)
downloadbcm5719-llvm-f7e7017281738ac64bb137d8900f96fe9c7fbc21.tar.gz
bcm5719-llvm-f7e7017281738ac64bb137d8900f96fe9c7fbc21.zip
Sparc: Support PSR, TBR, WIM read/write instructions.
Differential Revision: http://reviews.llvm.org/D8971 llvm-svn: 237582
Diffstat (limited to 'llvm/test/MC/Sparc')
-rw-r--r--llvm/test/MC/Sparc/sparc-special-registers.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/MC/Sparc/sparc-special-registers.s b/llvm/test/MC/Sparc/sparc-special-registers.s
index 74e4fc6350b..2cb57d720c4 100644
--- a/llvm/test/MC/Sparc/sparc-special-registers.s
+++ b/llvm/test/MC/Sparc/sparc-special-registers.s
@@ -15,3 +15,21 @@
! CHECK: rd %asr15, %g0 ! encoding: [0x81,0x43,0xc0,0x00]
rd %asr15, %g0
+
+ ! CHECK: rd %psr, %i0 ! encoding: [0xb1,0x48,0x00,0x00]
+ rd %psr, %i0
+
+ ! CHECK: rd %wim, %i0 ! encoding: [0xb1,0x50,0x00,0x00]
+ rd %wim, %i0
+
+ ! CHECK: rd %tbr, %i0 ! encoding: [0xb1,0x58,0x00,0x00]
+ rd %tbr, %i0
+
+ ! CHECK: wr %i0, 5, %psr ! encoding: [0x81,0x8e,0x20,0x05]
+ wr %i0, 5, %psr
+
+ ! CHECK: wr %i0, 5, %wim ! encoding: [0x81,0x96,0x20,0x05]
+ wr %i0, 5, %wim
+
+ ! CHECK: wr %i0, 5, %tbr ! encoding: [0x81,0x9e,0x20,0x05]
+ wr %i0, 5, %tbr
OpenPOWER on IntegriCloud