From 45715a7b9deb8b08e9ef78004bc58fc525d473b4 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Fri, 16 Sep 2011 22:27:12 +0000 Subject: [PATCH] Thumb2 assembly parsing and encoding for STRT. llvm-svn: 139963 --- llvm/test/MC/ARM/basic-thumb2-instructions.s | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/llvm/test/MC/ARM/basic-thumb2-instructions.s b/llvm/test/MC/ARM/basic-thumb2-instructions.s index a976c7fa3e0e..3d86850ced81 100644 --- a/llvm/test/MC/ARM/basic-thumb2-instructions.s +++ b/llvm/test/MC/ARM/basic-thumb2-instructions.s @@ -2376,6 +2376,20 @@ _func: @ CHECK: strht r1, [r8, #255] @ encoding: [0x28,0xf8,0xff,0x1e] +@------------------------------------------------------------------------------ +@ STRT +@------------------------------------------------------------------------------ + strt r1, [r2] + strt r1, [r8, #0] + strt r1, [r8, #3] + strt r1, [r8, #255] + +@ CHECK: strt r1, [r2] @ encoding: [0x42,0xf8,0x00,0x1e] +@ CHECK: strt r1, [r8] @ encoding: [0x48,0xf8,0x00,0x1e] +@ CHECK: strt r1, [r8, #3] @ encoding: [0x48,0xf8,0x03,0x1e] +@ CHECK: strt r1, [r8, #255] @ encoding: [0x48,0xf8,0xff,0x1e] + + @------------------------------------------------------------------------------ @ SUB (register) @------------------------------------------------------------------------------