From: Jim Grosbach Date: Thu, 15 Sep 2011 19:50:04 +0000 (+0000) Subject: Thumb2 assembly parsing and encoding for ROR. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5260be1f2d8a2efe9aea398248736556cab42eeb;p=oota-llvm.git Thumb2 assembly parsing and encoding for ROR. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139830 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s index 26be6f0e252..114e005c595 100644 --- a/test/MC/ARM/basic-thumb2-instructions.s +++ b/test/MC/ARM/basic-thumb2-instructions.s @@ -1473,6 +1473,44 @@ _func: revshne.w r1, r8 @ encoding: [0x98,0xfa,0xb8,0xf1] +@------------------------------------------------------------------------------ +@ ROR (immediate) +@------------------------------------------------------------------------------ + ror r2, r3, #12 + rors r8, r3, #31 + rors.w r2, r3, #1 + ror r2, r3, #4 + rors r2, r12, #15 + + ror r3, #19 + rors r8, #2 + rors.w r7, #5 + ror.w r12, #21 + +@ CHECK: ror.w r2, r3, #12 @ encoding: [0x4f,0xea,0x33,0x32] +@ CHECK: rors.w r8, r3, #31 @ encoding: [0x5f,0xea,0xf3,0x78] +@ CHECK: rors.w r2, r3, #1 @ encoding: [0x5f,0xea,0x73,0x02] +@ CHECK: ror.w r2, r3, #4 @ encoding: [0x4f,0xea,0x33,0x12] +@ CHECK: rors.w r2, r12, #15 @ encoding: [0x5f,0xea,0xfc,0x32] + +@ CHECK: ror.w r3, r3, #19 @ encoding: [0x4f,0xea,0xf3,0x43] +@ CHECK: rors.w r8, r8, #2 @ encoding: [0x5f,0xea,0xb8,0x08] +@ CHECK: rors.w r7, r7, #5 @ encoding: [0x5f,0xea,0x77,0x17] +@ CHECK: ror.w r12, r12, #21 @ encoding: [0x4f,0xea,0x7c,0x5c] + + +@------------------------------------------------------------------------------ +@ ROR (register) +@------------------------------------------------------------------------------ + ror r3, r4, r2 + ror.w r1, r2 + rors r3, r4, r8 + +@ CHECK: ror.w r3, r4, r2 @ encoding: [0x64,0xfa,0x02,0xf3] +@ CHECK: ror.w r1, r1, r2 @ encoding: [0x61,0xfa,0x02,0xf1] +@ CHECK: rors.w r3, r4, r8 @ encoding: [0x74,0xfa,0x08,0xf3] + + @------------------------------------------------------------------------------ @ SUB (register) @------------------------------------------------------------------------------