summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMInstrThumb.td
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2013-12-23 17:23:58 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2013-12-23 17:23:58 +0000
commit701875542d670e40e61390ccac08a6ed1de4d91f (patch)
tree03b9ec5f35df5e6fcbf2f836d3f9bea1989bf338 /llvm/lib/Target/ARM/ARMInstrThumb.td
parentd32e3ef349fe1d78144948f174438287c4a63aa4 (diff)
downloadbcm5719-llvm-701875542d670e40e61390ccac08a6ed1de4d91f.tar.gz
bcm5719-llvm-701875542d670e40e61390ccac08a6ed1de4d91f.zip
ARM: bkpt has an implicit immediate constant 0
The bkpt mnemonic has an implicit immediate constant of 0 unless otherwise specified. Add an instruction alias for the unvalued breakpoint mnemonic to treat it as a 0. This improves compatibility with GNU AS. Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org> llvm-svn: 197913
Diffstat (limited to 'llvm/lib/Target/ARM/ARMInstrThumb.td')
-rw-r--r--llvm/lib/Target/ARM/ARMInstrThumb.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrThumb.td b/llvm/lib/Target/ARM/ARMInstrThumb.td
index 250b3c6f2c6..f6d233a39c5 100644
--- a/llvm/lib/Target/ARM/ARMInstrThumb.td
+++ b/llvm/lib/Target/ARM/ARMInstrThumb.td
@@ -300,6 +300,8 @@ def tBKPT : T1I<(outs), (ins imm0_255:$val), NoItinerary, "bkpt\t$val",
bits<8> val;
let Inst{7-0} = val;
}
+// default immediate for breakpoint mnemonic
+def : InstAlias<"bkpt", (tBKPT 0)>, Requires<[IsThumb]>;
def tHLT : T1I<(outs), (ins imm0_63:$val), NoItinerary, "hlt\t$val",
[]>, T1Encoding<0b101110>, Requires<[IsThumb, HasV8]> {
OpenPOWER on IntegriCloud