Deleted Added
sdiff udiff text old ( 162417 ) new ( 164019 )
full compact
1$FreeBSD: head/gnu/usr.bin/cc/cc_tools/arm.md.diff 162417 2006-09-18 17:08:32Z imp $
2Index: arm.md
3===================================================================
4RCS file: /cognet/ncvs/src/contrib/gcc/config/arm/arm.md,v
5retrieving revision 1.1.1.7
6diff -u -p -r1.1.1.7 arm.md
7--- arm.md 3 Jun 2005 03:28:42 -0000 1.1.1.7
8+++ arm.md 29 Aug 2005 12:39:39 -0000
9@@ -8836,12 +8836,12 @@
10 ldm[2] = operands[4];
11 }
12 if (GET_CODE (XEXP (operands[2], 0)) != REG)
13- val1 = INTVAL (XEXP (XEXP (operands[2], 0), 1));
14+ val1 = INTVAL (XEXP (XEXP (operands[2], 0), 1));
15 if (GET_CODE (XEXP (operands[3], 0)) != REG)
16- val2 = INTVAL (XEXP (XEXP (operands[3], 0), 1));
17+ val2 = INTVAL (XEXP (XEXP (operands[3], 0), 1));
18 arith[0] = operands[0];
19 arith[3] = operands[1];
20- if (val1 < val2)
21+ if (val1 <= val2)
22 {
23 arith[1] = ldm[1];
24 arith[2] = ldm[2];
25@@ -8871,7 +8871,7 @@
26 else
27 output_asm_insn (\"ldm%?ia\\t%0, {%1, %2}\", ldm);
28 }
29- else
30+ else if (val2)
31 {
32 ldm[0] = XEXP (operands[2], 0);
33 if (val1 < val2)
34@@ -8879,6 +8879,14 @@
35 else
36 output_asm_insn (\"ldm%?da\\t%0, {%1, %2}\", ldm);
37 }
38+ else {
39+ ldm[0] = operands[0];
40+ ldm[1] = XEXP(operands[2], 0);
41+ output_asm_insn(\"ldr\\t%0, [%1]\", ldm);
42+ ldm[0] = operands[4];
43+ ldm[1] = XEXP(operands[3], 0);
44+ output_asm_insn(\"ldr\\t%0, [%1]\", ldm);
45+ }
46 output_asm_insn (\"%I3%?\\t%0, %1, %2\", arith);
47 return \"\";
48 }"