PR 10168
[deliverable/binutils-gdb.git] / gas / config / tc-arm.c
index 35498f20c912c87216dd6dec0ea07da810cc49d9..99b6e415606cdbba5dae60715ed5c2b3d67d3274 100644 (file)
@@ -10479,7 +10479,16 @@ static void
 do_t_pkhtb (void)
 {
   if (!inst.operands[3].present)
-    inst.instruction &= ~0x00000020;
+    {
+      unsigned Rtmp;
+
+      inst.instruction &= ~0x00000020;
+
+      /* PR 10168.  Swap the Rm and Rn registers.  */
+      Rtmp = inst.operands[1].reg;
+      inst.operands[1].reg = inst.operands[2].reg;
+      inst.operands[2].reg = Rtmp;
+    }
   do_t_pkhbt ();
 }
 
This page took 0.029612 seconds and 4 git commands to generate.