[llvm-commits] [llvm] r139013 - in /llvm/trunk/test/MC/ARM: basic-thumb2-instructions.s thumb2.s
Jim Grosbach
grosbach at apple.com
Fri Sep 2 10:44:27 PDT 2011
Author: grosbach
Date: Fri Sep 2 12:44:27 2011
New Revision: 139013
URL: http://llvm.org/viewvc/llvm-project?rev=139013&view=rev
Log:
Tests for Thumb2 AND (immediate) instruction.
Modified:
llvm/trunk/test/MC/ARM/basic-thumb2-instructions.s
llvm/trunk/test/MC/ARM/thumb2.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=139013&r1=139012&r2=139013&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/basic-thumb2-instructions.s (original)
+++ llvm/trunk/test/MC/ARM/basic-thumb2-instructions.s Fri Sep 2 12:44:27 2011
@@ -91,6 +91,18 @@
@ FIXME: ADR
@------------------------------------------------------------------------------
+ at ------------------------------------------------------------------------------
+@ AND (immediate)
+ at ------------------------------------------------------------------------------
+ and r2, r5, #0xff000
+ ands r3, r12, #0xf
+ and r1, #0xff
+ and r1, r1, #0xff
+
+@ CHECK: and r2, r5, #1044480 @ encoding: [0x05,0xf4,0x7f,0x22]
+@ CHECK: ands r3, r12, #15 @ encoding: [0x1c,0xf0,0x0f,0x03]
+@ CHECK: and r1, r1, #255 @ encoding: [0x01,0xf0,0xff,0x01]
+@ CHECK: and r1, r1, #255 @ encoding: [0x01,0xf0,0xff,0x01]
@------------------------------------------------------------------------------
@ B
Modified: llvm/trunk/test/MC/ARM/thumb2.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/thumb2.s?rev=139013&r1=139012&r2=139013&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/thumb2.s (original)
+++ llvm/trunk/test/MC/ARM/thumb2.s Fri Sep 2 12:44:27 2011
@@ -323,8 +323,6 @@
@ CHECK: ssat16 r0, #7, r0 @ encoding: [0x20,0xf3,0x06,0x00]
ssat16 r0, #7, r0
- and r1, #0xff
- and r1, r1, #0xff
orr r1, 0x100
orr r1, r1, 0x100
eor r1, 0x100
@@ -332,8 +330,6 @@
bic r1, 0x100
bic r1, r1, 0x100
-@ CHECK: and r1, r1, #255 @ encoding: [0x01,0xf0,0xff,0x01]
-@ CHECK: and r1, r1, #255 @ encoding: [0x01,0xf0,0xff,0x01]
@ CHECK: orr r1, r1, #256 @ encoding: [0x41,0xf4,0x80,0x71]
@ CHECK: orr r1, r1, #256 @ encoding: [0x41,0xf4,0x80,0x71]
@ CHECK: eor r1, r1, #256 @ encoding: [0x81,0xf4,0x80,0x71]
More information about the llvm-commits
mailing list