summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-09-14 21:29:54 +0000
committerJim Grosbach <grosbach@apple.com>2011-09-14 21:29:54 +0000
commit1fdddf767f2ee1b2aee54178b626edd8585675fa (patch)
tree11a24bbb2fc6fc8f2adfbb95fcdcb1d86b448571 /llvm
parent36acc8e984fb6d57a8e1352ac08d5da3b83419cd (diff)
downloadbcm5719-llvm-1fdddf767f2ee1b2aee54178b626edd8585675fa.tar.gz
bcm5719-llvm-1fdddf767f2ee1b2aee54178b626edd8585675fa.zip
Thumb2 assembly parsing and encoding for ORN.
llvm-svn: 139741
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/MC/ARM/basic-thumb2-instructions.s22
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/test/MC/ARM/basic-thumb2-instructions.s b/llvm/test/MC/ARM/basic-thumb2-instructions.s
index 97a59df224a..1ba7565d8bc 100644
--- a/llvm/test/MC/ARM/basic-thumb2-instructions.s
+++ b/llvm/test/MC/ARM/basic-thumb2-instructions.s
@@ -1176,6 +1176,28 @@ _func:
@------------------------------------------------------------------------------
+@ ORN
+@------------------------------------------------------------------------------
+ orn r4, r5, #0xf000
+ orn r4, r5, r6
+ orns r4, r5, r6
+ orn r4, r5, r6, lsl #5
+ orns r4, r5, r6, lsr #5
+ orn r4, r5, r6, lsr #5
+ orns r4, r5, r6, asr #5
+ orn r4, r5, r6, ror #5
+
+@ CHECK: orn r4, r5, #61440 @ encoding: [0x65,0xf4,0x70,0x44]
+@ CHECK: orn r4, r5, r6 @ encoding: [0x65,0xea,0x06,0x04]
+@ CHECK: orns r4, r5, r6 @ encoding: [0x75,0xea,0x06,0x04]
+@ CHECK: orn r4, r5, r6, lsl #5 @ encoding: [0x65,0xea,0x46,0x14]
+@ CHECK: orns r4, r5, r6, lsr #5 @ encoding: [0x75,0xea,0x56,0x14]
+@ CHECK: orn r4, r5, r6, lsr #5 @ encoding: [0x65,0xea,0x56,0x14]
+@ CHECK: orns r4, r5, r6, asr #5 @ encoding: [0x75,0xea,0x66,0x14]
+@ CHECK: orn r4, r5, r6, ror #5 @ encoding: [0x65,0xea,0x76,0x14]
+
+
+@------------------------------------------------------------------------------
@ IT
@------------------------------------------------------------------------------
@ Test encodings of a few full IT blocks, not just the IT instruction
OpenPOWER on IntegriCloud