aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-10-15 03:23:44 +0000
committerBob Wilson <bob.wilson@apple.com>2010-10-15 03:23:44 +0000
commitcfbece50f602c561c5eac046bcfc9a07c8c006cb (patch)
tree904ee8a1d808cf76884285c7601f21e19b84dc78 /lib
parent197a8df6405511e78265b09b6b313c30e7679094 (diff)
downloadexternal_llvm-cfbece50f602c561c5eac046bcfc9a07c8c006cb.zip
external_llvm-cfbece50f602c561c5eac046bcfc9a07c8c006cb.tar.gz
external_llvm-cfbece50f602c561c5eac046bcfc9a07c8c006cb.tar.bz2
ARM instructions that are both predicated and set the condition codes
have been printed with the "S" modifier after the predicate. With ARM's unified syntax, they are supposed to go in the other order. We fixed this for Thumb when we switched to unified syntax but missed changing it for ARM. Apparently we don't generate these instructions often because no one noticed until now. Thanks to Bill Wendling for the testcase! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116563 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/ARMInstrFormats.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMInstrFormats.td b/lib/Target/ARM/ARMInstrFormats.td
index e7f0173..3a6e5d6 100644
--- a/lib/Target/ARM/ARMInstrFormats.td
+++ b/lib/Target/ARM/ARMInstrFormats.td
@@ -284,7 +284,7 @@ class sI<dag oops, dag iops, AddrMode am, SizeFlagVal sz,
let OutOperandList = oops;
let InOperandList = !con(iops, (ins pred:$p, cc_out:$s));
- let AsmString = !strconcat(opc, "${p}${s}", asm);
+ let AsmString = !strconcat(opc, "${s}${p}", asm);
let Pattern = pattern;
list<Predicate> Predicates = [IsARM];
}