Fix assembly/disassembly of Thumb2 ADR instructions with immediate operands.
[oota-llvm.git] / test / MC / ARM / basic-thumb2-instructions.s
index bb57bb7ad885dbab5c35b389358bdb64a15ad37e..4c4938fde772311a6cd84b9abf6fb4ed65869313 100644 (file)
@@ -107,6 +107,12 @@ _func:
 @ FIXME: ADR
 @------------------------------------------------------------------------------
 
+        subw r11, pc, #3270
+        adr.w r11, #-826
+
+@ CHECK: subw  r11, pc, #3270          @ encoding: [0xaf,0xf6,0xc6,0x4b]
+@ CHECK: adr.w r11, #-826              @ encoding: [0xaf,0xf2,0x3a,0x3b]
+
 @------------------------------------------------------------------------------
 @ AND (immediate)
 @------------------------------------------------------------------------------