[llvm-commits] [llvm] r138778 - /llvm/trunk/test/MC/ARM/basic-thumb2-instructions.s
Jim Grosbach
grosbach at apple.com
Mon Aug 29 16:01:39 PDT 2011
Author: grosbach
Date: Mon Aug 29 18:01:38 2011
New Revision: 138778
URL: http://llvm.org/viewvc/llvm-project?rev=138778&view=rev
Log:
Thumb2 assembly parsing and encoding support for ADC(immediate).
Modified:
llvm/trunk/test/MC/ARM/basic-thumb2-instructions.s
Modified: llvm/trunk/test/MC/ARM/basic-thumb2-instructions.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/basic-thumb2-instructions.s?rev=138778&r1=138777&r2=138778&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/basic-thumb2-instructions.s (original)
+++ llvm/trunk/test/MC/ARM/basic-thumb2-instructions.s Mon Aug 29 18:01:38 2011
@@ -15,6 +15,29 @@
@ CHECK: _func
@------------------------------------------------------------------------------
+@ ADC (immediate)
+ at ------------------------------------------------------------------------------
+ adc r0, r1, #4
+ adcs r0, r1, #0
+ adc r1, r2, #255
+ adc r3, r7, #0x00550055
+ adc r8, r12, #0xaa00aa00
+ adc r9, r7, #0xa5a5a5a5
+ adc r5, r3, #0x87000000
+ adc r4, r2, #0x7f800000
+ adc r4, r2, #0x00000680
+
+@ CHECK: adc r0, r1, #4 @ encoding: [0x41,0xf1,0x04,0x00]
+@ CHECK: adcs r0, r1, #0 @ encoding: [0x51,0xf1,0x00,0x00]
+@ CHECK: adc r1, r2, #255 @ encoding: [0x42,0xf1,0xff,0x01]
+@ CHECK: adc r3, r7, #5570645 @ encoding: [0x47,0xf1,0x55,0x13]
+@ CHECK: adc r8, r12, #2852170240 @ encoding: [0x4c,0xf1,0xaa,0x28]
+@ CHECK: adc r9, r7, #2779096485 @ encoding: [0x47,0xf1,0xa5,0x39]
+@ CHECK: adc r5, r3, #2264924160 @ encoding: [0x43,0xf1,0x07,0x45]
+@ CHECK: adc r4, r2, #2139095040 @ encoding: [0x42,0xf1,0xff,0x44]
+@ CHECK: adc r4, r2, #1664 @ encoding: [0x42,0xf5,0xd0,0x64]
+
+ at ------------------------------------------------------------------------------
@ IT
@------------------------------------------------------------------------------
@ Test encodings of a few full IT blocks, not just the IT instruction
More information about the llvm-commits
mailing list