[llvm] r272015 - [ARM] Accept conditional versions of BXNS and BLXNS
Oliver Stannard via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 7 07:58:49 PDT 2016
Author: olista01
Date: Tue Jun 7 09:58:48 2016
New Revision: 272015
URL: http://llvm.org/viewvc/llvm-project?rev=272015&view=rev
Log:
[ARM] Accept conditional versions of BXNS and BLXNS
These instructions end in "S" but are not flag-setting, so they need including
in the list of special cases in the assembly parser.
Differential Revision: http://reviews.llvm.org/D21077
Modified:
llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
llvm/trunk/test/MC/ARM/thumbv8m.s
Modified: llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp?rev=272015&r1=272014&r2=272015&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp Tue Jun 7 09:58:48 2016
@@ -5420,6 +5420,7 @@ StringRef ARMAsmParser::splitMnemonic(St
Mnemonic == "fsts" || Mnemonic == "fcpys" || Mnemonic == "fdivs" ||
Mnemonic == "fmuls" || Mnemonic == "fcmps" || Mnemonic == "fcmpzs" ||
Mnemonic == "vfms" || Mnemonic == "vfnms" || Mnemonic == "fconsts" ||
+ Mnemonic == "bxns" || Mnemonic == "blxns" ||
(Mnemonic == "movs" && isThumb()))) {
Mnemonic = Mnemonic.slice(0, Mnemonic.size() - 1);
CarrySetting = true;
Modified: llvm/trunk/test/MC/ARM/thumbv8m.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/thumbv8m.s?rev=272015&r1=272014&r2=272015&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/thumbv8m.s (original)
+++ llvm/trunk/test/MC/ARM/thumbv8m.s Tue Jun 7 09:58:48 2016
@@ -146,12 +146,26 @@ sg
// CHECK: bxns r0 @ encoding: [0x04,0x47]
bxns r0
+// UNDEF-BASELINE: error: invalid operand for instruction
+// UNDEF-BASELINE: error: conditional execution not supported in Thumb1
+// CHECK-MAINLINE: it eq @ encoding: [0x08,0xbf]
+// CHECK-MAINLINE: bxnseq r1 @ encoding: [0x0c,0x47]
+it eq
+bxnseq r1
+
// CHECK: bxns lr @ encoding: [0x74,0x47]
bxns lr
// CHECK: blxns r0 @ encoding: [0x84,0x47]
blxns r0
+// UNDEF-BASELINE: error: invalid operand for instruction
+// UNDEF-BASELINE: error: conditional execution not supported in Thumb1
+// CHECK-MAINLINE: it eq @ encoding: [0x08,0xbf]
+// CHECK-MAINLINE: blxnseq r1 @ encoding: [0x8c,0x47]
+it eq
+blxnseq r1
+
// CHECK: tt r0, r1 @ encoding: [0x41,0xe8,0x00,0xf0]
tt r0, r1
More information about the llvm-commits
mailing list