From 356c759908e1c6b968293d54bc4aa26bc8415407 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Thu, 15 Sep 2011 21:17:38 +0000 Subject: [PATCH] Add some missing 'CHECK' lines and tidy up others. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139849 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/ARM/basic-arm-instructions.s | 112 ++++++++---------------- test/MC/ARM/basic-thumb2-instructions.s | 20 ++--- 2 files changed, 48 insertions(+), 84 deletions(-) diff --git a/test/MC/ARM/basic-arm-instructions.s b/test/MC/ARM/basic-arm-instructions.s index 8691e15e162..a21799246ea 100644 --- a/test/MC/ARM/basic-arm-instructions.s +++ b/test/MC/ARM/basic-arm-instructions.s @@ -1440,8 +1440,8 @@ Lforward: setend be setend le - sel r9, r2, r1 @ encoding: [0xb1,0x9f,0x82,0xe6] - selne r9, r2, r1 @ encoding: [0xb1,0x9f,0x82,0x16] +@ CHECK: setend be @ encoding: [0x00,0x02,0x01,0xf1] +@ CHECK: setend le @ encoding: [0x00,0x00,0x01,0xf1] @------------------------------------------------------------------------------ @@ -1981,12 +1981,9 @@ Lforward: @ CHECK: sxtab r2, r3, r4 @ encoding: [0x74,0x20,0xa3,0xe6] @ CHECK: sxtab r4, r5, r6 @ encoding: [0x76,0x40,0xa5,0xe6] -@ CHECK: sxtablt r6, r2, r9, ror #8 - @ encoding: [0x79,0x64,0xa2,0xb6] -@ CHECK: sxtab r5, r1, r4, ror #16 - @ encoding: [0x74,0x58,0xa1,0xe6] -@ CHECK: sxtab r7, r8, r3, ror #24 - @ encoding: [0x73,0x7c,0xa8,0xe6] +@ CHECK: sxtablt r6, r2, r9, ror #8 @ encoding: [0x79,0x64,0xa2,0xb6] +@ CHECK: sxtab r5, r1, r4, ror #16 @ encoding: [0x74,0x58,0xa1,0xe6] +@ CHECK: sxtab r7, r8, r3, ror #24 @ encoding: [0x73,0x7c,0xa8,0xe6] @------------------------------------------------------------------------------ @@ -2000,12 +1997,9 @@ Lforward: @ CHECK: sxtab16ge r0, r1, r4 @ encoding: [0x74,0x00,0x81,0xa6] @ CHECK: sxtab16 r6, r2, r7 @ encoding: [0x77,0x60,0x82,0xe6] -@ CHECK: sxtab16 r3, r5, r8, ror #8 - @ encoding: [0x78,0x34,0x85,0xe6] -@ CHECK: sxtab16 r3, r2, r1, ror #16 - @ encoding: [0x71,0x38,0x82,0xe6] -@ CHECK: sxtab16eq r1, r2, r3, ror #24 - @ encoding: [0x73,0x1c,0x82,0x06] +@ CHECK: sxtab16 r3, r5, r8, ror #8 @ encoding: [0x78,0x34,0x85,0xe6] +@ CHECK: sxtab16 r3, r2, r1, ror #16 @ encoding: [0x71,0x38,0x82,0xe6] +@ CHECK: sxtab16eq r1, r2, r3, ror #24 @ encoding: [0x73,0x1c,0x82,0x06] @------------------------------------------------------------------------------ @ SXTAH @@ -2018,12 +2012,9 @@ Lforward: @ CHECK: sxtah r1, r3, r9 @ encoding: [0x79,0x10,0xb3,0xe6] @ CHECK: sxtahhi r6, r1, r6 @ encoding: [0x76,0x60,0xb1,0x86] -@ CHECK: sxtah r3, r8, r3, ror #8 - @ encoding: [0x73,0x34,0xb8,0xe6] -@ CHECK: sxtahlo r2, r2, r4, ror #16 - @ encoding: [0x74,0x28,0xb2,0x36] -@ CHECK: sxtah r9, r3, r3, ror #24 - @ encoding: [0x73,0x9c,0xb3,0xe6] +@ CHECK: sxtah r3, r8, r3, ror #8 @ encoding: [0x73,0x34,0xb8,0xe6] +@ CHECK: sxtahlo r2, r2, r4, ror #16 @ encoding: [0x74,0x28,0xb2,0x36] +@ CHECK: sxtah r9, r3, r3, ror #24 @ encoding: [0x73,0x9c,0xb3,0xe6] @------------------------------------------------------------------------------ @ SXTB @@ -2036,12 +2027,9 @@ Lforward: @ CHECK: sxtbge r2, r4 @ encoding: [0x74,0x20,0xaf,0xa6] @ CHECK: sxtb r5, r6 @ encoding: [0x76,0x50,0xaf,0xe6] -@ CHECK: sxtb r6, r9, ror #8 - @ encoding: [0x79,0x64,0xaf,0xe6] -@ CHECK: sxtblo r5, r1, ror #16 - @ encoding: [0x71,0x58,0xaf,0x36] -@ CHECK: sxtb r8, r3, ror #24 - @ encoding: [0x73,0x8c,0xaf,0xe6] +@ CHECK: sxtb r6, r9, ror #8 @ encoding: [0x79,0x64,0xaf,0xe6] +@ CHECK: sxtblo r5, r1, ror #16 @ encoding: [0x71,0x58,0xaf,0x36] +@ CHECK: sxtb r8, r3, ror #24 @ encoding: [0x73,0x8c,0xaf,0xe6] @------------------------------------------------------------------------------ @@ -2055,12 +2043,9 @@ Lforward: @ CHECK: sxtb16 r1, r4 @ encoding: [0x74,0x10,0x8f,0xe6] @ CHECK: sxtb16 r6, r7 @ encoding: [0x77,0x60,0x8f,0xe6] -@ CHECK: sxtb16hs r3, r5, ror #8 - @ encoding: [0x75,0x34,0x8f,0x26] -@ CHECK: sxtb16 r3, r1, ror #16 - @ encoding: [0x71,0x38,0x8f,0xe6] -@ CHECK: sxtb16ge r2, r3, ror #24 - @ encoding: [0x73,0x2c,0x8f,0xa6] +@ CHECK: sxtb16hs r3, r5, ror #8 @ encoding: [0x75,0x34,0x8f,0x26] +@ CHECK: sxtb16 r3, r1, ror #16 @ encoding: [0x71,0x38,0x8f,0xe6] +@ CHECK: sxtb16ge r2, r3, ror #24 @ encoding: [0x73,0x2c,0x8f,0xa6] @------------------------------------------------------------------------------ @@ -2074,12 +2059,9 @@ Lforward: @ CHECK: sxthne r3, r9 @ encoding: [0x79,0x30,0xbf,0x16] @ CHECK: sxth r1, r6 @ encoding: [0x76,0x10,0xbf,0xe6] -@ CHECK: sxth r3, r8, ror #8 - @ encoding: [0x78,0x34,0xbf,0xe6] -@ CHECK: sxthle r2, r2, ror #16 - @ encoding: [0x72,0x28,0xbf,0xd6] -@ CHECK: sxth r9, r3, ror #24 - @ encoding: [0x73,0x9c,0xbf,0xe6] +@ CHECK: sxth r3, r8, ror #8 @ encoding: [0x78,0x34,0xbf,0xe6] +@ CHECK: sxthle r2, r2, ror #16 @ encoding: [0x72,0x28,0xbf,0xd6] +@ CHECK: sxth r9, r3, ror #24 @ encoding: [0x73,0x9c,0xbf,0xe6] @------------------------------------------------------------------------------ @@ -2376,12 +2358,9 @@ Lforward: @ CHECK: uxtab r2, r3, r4 @ encoding: [0x74,0x20,0xe3,0xe6] @ CHECK: uxtab r4, r5, r6 @ encoding: [0x76,0x40,0xe5,0xe6] -@ CHECK: uxtablt r6, r2, r9, ror #8 - @ encoding: [0x79,0x64,0xe2,0xb6] -@ CHECK: uxtab r5, r1, r4, ror #16 - @ encoding: [0x74,0x58,0xe1,0xe6] -@ CHECK: uxtab r7, r8, r3, ror #24 - @ encoding: [0x73,0x7c,0xe8,0xe6] +@ CHECK: uxtablt r6, r2, r9, ror #8 @ encoding: [0x79,0x64,0xe2,0xb6] +@ CHECK: uxtab r5, r1, r4, ror #16 @ encoding: [0x74,0x58,0xe1,0xe6] +@ CHECK: uxtab r7, r8, r3, ror #24 @ encoding: [0x73,0x7c,0xe8,0xe6] @------------------------------------------------------------------------------ @@ -2395,12 +2374,9 @@ Lforward: @ CHECK: uxtab16ge r0, r1, r4 @ encoding: [0x74,0x00,0xc1,0xa6] @ CHECK: uxtab16 r6, r2, r7 @ encoding: [0x77,0x60,0xc2,0xe6] -@ CHECK: uxtab16 r3, r5, r8, ror #8 - @ encoding: [0x78,0x34,0xc5,0xe6] -@ CHECK: uxtab16 r3, r2, r1, ror #16 - @ encoding: [0x71,0x38,0xc2,0xe6] -@ CHECK: uxtab16eq r1, r2, r3, ror #24 - @ encoding: [0x73,0x1c,0xc2,0x06] +@ CHECK: uxtab16 r3, r5, r8, ror #8 @ encoding: [0x78,0x34,0xc5,0xe6] +@ CHECK: uxtab16 r3, r2, r1, ror #16 @ encoding: [0x71,0x38,0xc2,0xe6] +@ CHECK: uxtab16eq r1, r2, r3, ror #24 @ encoding: [0x73,0x1c,0xc2,0x06] @------------------------------------------------------------------------------ @ UXTAH @@ -2413,12 +2389,9 @@ Lforward: @ CHECK: uxtah r1, r3, r9 @ encoding: [0x79,0x10,0xf3,0xe6] @ CHECK: uxtahhi r6, r1, r6 @ encoding: [0x76,0x60,0xf1,0x86] -@ CHECK: uxtah r3, r8, r3, ror #8 - @ encoding: [0x73,0x34,0xf8,0xe6] -@ CHECK: uxtahlo r2, r2, r4, ror #16 - @ encoding: [0x74,0x28,0xf2,0x36] -@ CHECK: uxtah r9, r3, r3, ror #24 - @ encoding: [0x73,0x9c,0xf3,0xe6] +@ CHECK: uxtah r3, r8, r3, ror #8 @ encoding: [0x73,0x34,0xf8,0xe6] +@ CHECK: uxtahlo r2, r2, r4, ror #16 @ encoding: [0x74,0x28,0xf2,0x36] +@ CHECK: uxtah r9, r3, r3, ror #24 @ encoding: [0x73,0x9c,0xf3,0xe6] @------------------------------------------------------------------------------ @ UXTB @@ -2431,12 +2404,9 @@ Lforward: @ CHECK: uxtbge r2, r4 @ encoding: [0x74,0x20,0xef,0xa6] @ CHECK: uxtb r5, r6 @ encoding: [0x76,0x50,0xef,0xe6] -@ CHECK: uxtb r6, r9, ror #8 - @ encoding: [0x79,0x64,0xef,0xe6] -@ CHECK: uxtblo r5, r1, ror #16 - @ encoding: [0x71,0x58,0xef,0x36] -@ CHECK: uxtb r8, r3, ror #24 - @ encoding: [0x73,0x8c,0xef,0xe6] +@ CHECK: uxtb r6, r9, ror #8 @ encoding: [0x79,0x64,0xef,0xe6] +@ CHECK: uxtblo r5, r1, ror #16 @ encoding: [0x71,0x58,0xef,0x36] +@ CHECK: uxtb r8, r3, ror #24 @ encoding: [0x73,0x8c,0xef,0xe6] @------------------------------------------------------------------------------ @@ -2450,12 +2420,9 @@ Lforward: @ CHECK: uxtb16 r1, r4 @ encoding: [0x74,0x10,0xcf,0xe6] @ CHECK: uxtb16 r6, r7 @ encoding: [0x77,0x60,0xcf,0xe6] -@ CHECK: uxtb16hs r3, r5, ror #8 - @ encoding: [0x75,0x34,0xcf,0x26] -@ CHECK: uxtb16 r3, r1, ror #16 - @ encoding: [0x71,0x38,0xcf,0xe6] -@ CHECK: uxtb16ge r2, r3, ror #24 - @ encoding: [0x73,0x2c,0xcf,0xa6] +@ CHECK: uxtb16hs r3, r5, ror #8 @ encoding: [0x75,0x34,0xcf,0x26] +@ CHECK: uxtb16 r3, r1, ror #16 @ encoding: [0x71,0x38,0xcf,0xe6] +@ CHECK: uxtb16ge r2, r3, ror #24 @ encoding: [0x73,0x2c,0xcf,0xa6] @------------------------------------------------------------------------------ @@ -2469,12 +2436,9 @@ Lforward: @ CHECK: uxthne r3, r9 @ encoding: [0x79,0x30,0xff,0x16] @ CHECK: uxth r1, r6 @ encoding: [0x76,0x10,0xff,0xe6] -@ CHECK: uxth r3, r8, ror #8 - @ encoding: [0x78,0x34,0xff,0xe6] -@ CHECK: uxthle r2, r2, ror #16 - @ encoding: [0x72,0x28,0xff,0xd6] -@ CHECK: uxth r9, r3, ror #24 - @ encoding: [0x73,0x9c,0xff,0xe6] +@ CHECK: uxth r3, r8, ror #8 @ encoding: [0x78,0x34,0xff,0xe6] +@ CHECK: uxthle r2, r2, ror #16 @ encoding: [0x72,0x28,0xff,0xd6] +@ CHECK: uxth r9, r3, ror #24 @ encoding: [0x73,0x9c,0xff,0xe6] @------------------------------------------------------------------------------ @ WFE/WFI/YIELD diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s index 79510e3e79c..2e890a13ecf 100644 --- a/test/MC/ARM/basic-thumb2-instructions.s +++ b/test/MC/ARM/basic-thumb2-instructions.s @@ -1450,11 +1450,11 @@ _func: rev16ne r1, r2 rev16ne r1, r8 - rev16.w r1, r2 @ encoding: [0x92,0xfa,0x92,0xf1] - rev16.w r2, r8 @ encoding: [0x98,0xfa,0x98,0xf2] - itt ne @ encoding: [0x1c,0xbf] - rev16ne r1, r2 @ encoding: [0x51,0xba] - rev16ne.w r1, r8 @ encoding: [0x98,0xfa,0x98,0xf1] +@ CHECK: rev16.w r1, r2 @ encoding: [0x92,0xfa,0x92,0xf1] +@ CHECK: rev16.w r2, r8 @ encoding: [0x98,0xfa,0x98,0xf2] +@ CHECK: itt ne @ encoding: [0x1c,0xbf] +@ CHECK: rev16ne r1, r2 @ encoding: [0x51,0xba] +@ CHECK: rev16ne.w r1, r8 @ encoding: [0x98,0xfa,0x98,0xf1] @------------------------------------------------------------------------------ @@ -1466,11 +1466,11 @@ _func: revshne r1, r2 revshne r1, r8 - revsh.w r1, r2 @ encoding: [0x92,0xfa,0xb2,0xf1] - revsh.w r2, r8 @ encoding: [0x98,0xfa,0xb8,0xf2] - itt ne @ encoding: [0x1c,0xbf] - revshne r1, r2 @ encoding: [0xd1,0xba] - revshne.w r1, r8 @ encoding: [0x98,0xfa,0xb8,0xf1] +@ CHECK: revsh.w r1, r2 @ encoding: [0x92,0xfa,0xb2,0xf1] +@ CHECK: revsh.w r2, r8 @ encoding: [0x98,0xfa,0xb8,0xf2] +@ CHECK: itt ne @ encoding: [0x1c,0xbf] +@ CHECK: revshne r1, r2 @ encoding: [0xd1,0xba] +@ CHECK: revshne.w r1, r8 @ encoding: [0x98,0xfa,0xb8,0xf1] @------------------------------------------------------------------------------