Actually, the address operand of the Thumb2 LDREX / STREX instructions *can*
authorCameron Zwarich <zwarich@apple.com>
Tue, 17 May 2011 23:26:20 +0000 (23:26 +0000)
committerCameron Zwarich <zwarich@apple.com>
Tue, 17 May 2011 23:26:20 +0000 (23:26 +0000)
take r13, so we can just make it a GPR. This fixes PR8825.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131507 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrThumb2.td

index 5e63ed5912ab259e56657454a489c2346c9b7310..b8159f13a3af7044ba1e1e03a280e6350194fd1a 100644 (file)
@@ -158,7 +158,7 @@ def t2addrmode_so_reg : Operand<i32>,
 //
 def t2addrmode_reg : Operand<i32> {
   let PrintMethod = "printAddrMode7Operand";
-  let MIOperandInfo = (ops rGPR);
+  let MIOperandInfo = (ops GPR);
   let ParserMatchClass = MemMode7AsmOperand;
 }