[PATCH] D13594: [mips] Allowed dla instructions on 32-bit architectures.

Scott Egerton via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 9 07:52:11 PDT 2015


s.egerton created this revision.
s.egerton added reviewers: dsanders, vkalintiris.
s.egerton added a subscriber: llvm-commits.

This is now the same as the behaviour of the GNU assembler. This was done
as it is required in order to build the Linux kernel with the integrated
assembler enabled.

http://reviews.llvm.org/D13594

Files:
  lib/Target/Mips/AsmParser/MipsAsmParser.cpp

Index: lib/Target/Mips/AsmParser/MipsAsmParser.cpp
===================================================================
--- lib/Target/Mips/AsmParser/MipsAsmParser.cpp
+++ lib/Target/Mips/AsmParser/MipsAsmParser.cpp
@@ -2322,12 +2322,6 @@
     Is32BitAddress = false;
   }
 
-  // dla requires 64-bit addresses.
-  if (!Is32BitAddress && !ABI.ArePtrs64bit()) {
-    Error(IDLoc, "instruction requires a 64-bit architecture");
-    return true;
-  }
-
   if (!Offset.isImm())
     return loadAndAddSymbolAddress(Offset.getExpr(), DstReg, BaseReg,
                                    Is32BitAddress, IDLoc, Instructions);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13594.36948.patch
Type: text/x-patch
Size: 619 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151009/05c8ef8e/attachment.bin>


More information about the llvm-commits mailing list