Commit 59d96342 by DJ Delorie Committed by DJ Delorie

rl78.c (rl78_print_operand_1): Change %c to %C to avoid conflict with the MI use of %c.

* config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
avoid conflict with the MI use of %c.
* config/rl78/rl78-real.md: change %c to %C throughout.
* config/rl78/rl78-virt.md: Likewise.

From-SVN: r203299
parent a21a0e9a
2013-10-08 DJ Delorie <dj@redhat.com>
* config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
avoid conflict with the MI use of %c.
* config/rl78/rl78-real.md: change %c to %C throughout.
* config/rl78/rl78-virt.md: Likewise.
2013-10-08 Jan Hubicka <jh@suse.cz> 2013-10-08 Jan Hubicka <jh@suse.cz>
* config/i386/i386.c (ix86_option_override_internal): Switch * config/i386/i386.c (ix86_option_override_internal): Switch
......
...@@ -321,9 +321,9 @@ ...@@ -321,9 +321,9 @@
(pc)))] (pc)))]
"rl78_real_insns_ok ()" "rl78_real_insns_ok ()"
"@ "@
cmp\t%1, %2 \;xor1 CY,%1.7\;not1 CY\;sk%c0 \;br\t!!%3 cmp\t%1, %2 \;xor1 CY,%1.7\;not1 CY\;sk%C0 \;br\t!!%3
cmp\t%1, %2 \;xor1 CY,%1.7\;sk%c0 \;br\t!!%3 cmp\t%1, %2 \;xor1 CY,%1.7\;sk%C0 \;br\t!!%3
cmp\t%1, %2 \;xor1 CY,%1.7\;xor1 CY,%2.7\;sk%c0 \;br\t!!%3" cmp\t%1, %2 \;xor1 CY,%1.7\;xor1 CY,%2.7\;sk%C0 \;br\t!!%3"
) )
(define_insn "*cbranchqi4_real" (define_insn "*cbranchqi4_real"
...@@ -335,10 +335,10 @@ ...@@ -335,10 +335,10 @@
(pc)))] (pc)))]
"rl78_real_insns_ok ()" "rl78_real_insns_ok ()"
"@ "@
cmp0\t%1 \;sk%c0 \;br\t!!%3 cmp0\t%1 \;sk%C0 \;br\t!!%3
cmp\t%1, %2 \;sk%c0 \;br\t!!%3 cmp\t%1, %2 \;sk%C0 \;br\t!!%3
cmp\t%1, %2 \;sk%c0 \;br\t!!%3 cmp\t%1, %2 \;sk%C0 \;br\t!!%3
cmp\t%1, %2 \;sk%c0 \;br\t!!%3" cmp\t%1, %2 \;sk%C0 \;br\t!!%3"
) )
(define_insn "*cbranchhi4_real_signed" (define_insn "*cbranchhi4_real_signed"
...@@ -350,9 +350,9 @@ ...@@ -350,9 +350,9 @@
(pc)))] (pc)))]
"rl78_real_insns_ok ()" "rl78_real_insns_ok ()"
"@ "@
cmpw\t%1, %2 \;xor1 CY,%Q1.7\;not1 CY\;sk%c0 \;br\t!!%3 cmpw\t%1, %2 \;xor1 CY,%Q1.7\;not1 CY\;sk%C0 \;br\t!!%3
cmpw\t%1, %2 \;xor1 CY,%Q1.7\;sk%c0 \;br\t!!%3 cmpw\t%1, %2 \;xor1 CY,%Q1.7\;sk%C0 \;br\t!!%3
cmpw\t%1, %2 \;xor1 CY,%Q1.7\;xor1 CY,%Q2.7\;sk%c0 \;br\t!!%3 cmpw\t%1, %2 \;xor1 CY,%Q1.7\;xor1 CY,%Q2.7\;sk%C0 \;br\t!!%3
%z0\t!!%3" %z0\t!!%3"
) )
...@@ -365,7 +365,7 @@ ...@@ -365,7 +365,7 @@
(pc)))] (pc)))]
"rl78_real_insns_ok ()" "rl78_real_insns_ok ()"
"@ "@
cmpw\t%1, %2 \;sk%c0 \;br\t!!%3 cmpw\t%1, %2 \;sk%C0 \;br\t!!%3
%z0\t!!%3" %z0\t!!%3"
) )
...@@ -377,7 +377,7 @@ ...@@ -377,7 +377,7 @@
(pc) (pc)
(label_ref (match_operand 3 "" ""))))] (label_ref (match_operand 3 "" ""))))]
"rl78_real_insns_ok ()" "rl78_real_insns_ok ()"
"cmpw\t%1, %2 \;sk%c0 \;br\t!!%3" "cmpw\t%1, %2 \;sk%C0 \;br\t!!%3"
) )
(define_insn "*cbranchsi4_real_lt" (define_insn "*cbranchsi4_real_lt"
...@@ -419,9 +419,9 @@ ...@@ -419,9 +419,9 @@
] ]
"rl78_real_insns_ok ()" "rl78_real_insns_ok ()"
"@ "@
movw ax,%H1 \;cmpw ax, %H2 \;xor1 CY,a.7\;not1 CY\; movw ax,%h1 \;sknz \;cmpw ax, %h2 \;sk%c0 \;br\t!!%3 movw ax,%H1 \;cmpw ax, %H2 \;xor1 CY,a.7\;not1 CY\; movw ax,%h1 \;sknz \;cmpw ax, %h2 \;sk%C0 \;br\t!!%3
movw ax,%H1 \;cmpw ax, %H2 \;xor1 CY,a.7\; movw ax,%h1 \;sknz \;cmpw ax, %h2 \;sk%c0 \;br\t!!%3 movw ax,%H1 \;cmpw ax, %H2 \;xor1 CY,a.7\; movw ax,%h1 \;sknz \;cmpw ax, %h2 \;sk%C0 \;br\t!!%3
movw ax,%H1 \;cmpw ax, %H2 \;xor1 CY,a.7\;xor1 CY,%E2.7\;movw ax,%h1 \;sknz \;cmpw ax, %h2 \;sk%c0 \;br\t!!%3" movw ax,%H1 \;cmpw ax, %H2 \;xor1 CY,a.7\;xor1 CY,%E2.7\;movw ax,%h1 \;sknz \;cmpw ax, %h2 \;sk%C0 \;br\t!!%3"
) )
(define_insn "*cbranchsi4_real" (define_insn "*cbranchsi4_real"
...@@ -434,7 +434,7 @@ ...@@ -434,7 +434,7 @@
(clobber (reg:HI AX_REG)) (clobber (reg:HI AX_REG))
] ]
"rl78_real_insns_ok ()" "rl78_real_insns_ok ()"
"movw ax,%H1 \;cmpw ax, %H2 \;movw ax,%h1 \;sknz \;cmpw ax, %h2 \;sk%c0 \;br\t!!%3" "movw ax,%H1 \;cmpw ax, %H2 \;movw ax,%h1 \;sknz \;cmpw ax, %h2 \;sk%C0 \;br\t!!%3"
) )
;; Peephole to match: ;; Peephole to match:
......
...@@ -320,7 +320,7 @@ ...@@ -320,7 +320,7 @@
(label_ref (match_operand 3 "" "")) (label_ref (match_operand 3 "" ""))
(pc)))] (pc)))]
"rl78_virt_insns_ok ()" "rl78_virt_insns_ok ()"
"v.cmp\t%1, %2\\n\tv.b%c0\t%3" "v.cmp\t%1, %2\\n\tv.b%C0\t%3"
[(set_attr "valloc" "cmp")] [(set_attr "valloc" "cmp")]
) )
...@@ -332,7 +332,7 @@ ...@@ -332,7 +332,7 @@
(label_ref (match_operand 3 "" "")) (label_ref (match_operand 3 "" ""))
(pc)))] (pc)))]
"rl78_virt_insns_ok ()" "rl78_virt_insns_ok ()"
"v.cmp\t%1, %2\\n\tv.b%c0\t%3" "v.cmp\t%1, %2\\n\tv.b%C0\t%3"
[(set_attr "valloc" "cmp")] [(set_attr "valloc" "cmp")]
) )
...@@ -344,7 +344,7 @@ ...@@ -344,7 +344,7 @@
(label_ref (match_operand 3 "" "")) (label_ref (match_operand 3 "" ""))
(pc)))] (pc)))]
"rl78_virt_insns_ok ()" "rl78_virt_insns_ok ()"
"v.cmpw\t%1, %2\\n\tv.b%c0\t%3" "v.cmpw\t%1, %2\\n\tv.b%C0\t%3"
[(set_attr "valloc" "cmp")] [(set_attr "valloc" "cmp")]
) )
...@@ -356,7 +356,7 @@ ...@@ -356,7 +356,7 @@
(label_ref (match_operand 3 "" "")) (label_ref (match_operand 3 "" ""))
(pc)))] (pc)))]
"rl78_virt_insns_ok ()" "rl78_virt_insns_ok ()"
"v.cmpw\t%1, %2\\n\tv.b%c0\t%3" "v.cmpw\t%1, %2\\n\tv.b%C0\t%3"
[(set_attr "valloc" "cmp")] [(set_attr "valloc" "cmp")]
) )
...@@ -370,7 +370,7 @@ ...@@ -370,7 +370,7 @@
(clobber (reg:HI AX_REG)) (clobber (reg:HI AX_REG))
] ]
"rl78_virt_insns_ok ()" "rl78_virt_insns_ok ()"
"v.cmpd\t%1, %2\\n\tv.b%c0\t%3" "v.cmpd\t%1, %2\\n\tv.b%C0\t%3"
[(set_attr "valloc" "macax")] [(set_attr "valloc" "macax")]
) )
......
...@@ -1301,7 +1301,8 @@ rl78_function_arg_boundary (enum machine_mode mode ATTRIBUTE_UNUSED, ...@@ -1301,7 +1301,8 @@ rl78_function_arg_boundary (enum machine_mode mode ATTRIBUTE_UNUSED,
S - SADDR form of a real register S - SADDR form of a real register
v - real register corresponding to a virtual register v - real register corresponding to a virtual register
m - minus - negative of CONST_INT value. m - minus - negative of CONST_INT value.
c - inverse of a conditional (NE vs EQ for example) C - inverse of a conditional (NE vs EQ for example)
C - complement of an integer
z - collapsed conditional z - collapsed conditional
s - shift count mod 8 s - shift count mod 8
S - shift count mod 16 S - shift count mod 16
...@@ -1555,37 +1556,37 @@ rl78_print_operand_1 (FILE * file, rtx op, int letter) ...@@ -1555,37 +1556,37 @@ rl78_print_operand_1 (FILE * file, rtx op, int letter)
if (letter == 'z') if (letter == 'z')
fprintf (file, "#comparison eliminated"); fprintf (file, "#comparison eliminated");
else else
fprintf (file, letter == 'c' ? "nc" : "c"); fprintf (file, letter == 'C' ? "nc" : "c");
break; break;
case LEU: case LEU:
if (letter == 'z') if (letter == 'z')
fprintf (file, "br"); fprintf (file, "br");
else else
fprintf (file, letter == 'c' ? "h" : "nh"); fprintf (file, letter == 'C' ? "h" : "nh");
break; break;
case GEU: case GEU:
if (letter == 'z') if (letter == 'z')
fprintf (file, "br"); fprintf (file, "br");
else else
fprintf (file, letter == 'c' ? "c" : "nc"); fprintf (file, letter == 'C' ? "c" : "nc");
break; break;
case GTU: case GTU:
if (letter == 'z') if (letter == 'z')
fprintf (file, "#comparison eliminated"); fprintf (file, "#comparison eliminated");
else else
fprintf (file, letter == 'c' ? "nh" : "h"); fprintf (file, letter == 'C' ? "nh" : "h");
break; break;
case EQ: case EQ:
if (letter == 'z') if (letter == 'z')
fprintf (file, "br"); fprintf (file, "br");
else else
fprintf (file, letter == 'c' ? "nz" : "z"); fprintf (file, letter == 'C' ? "nz" : "z");
break; break;
case NE: case NE:
if (letter == 'z') if (letter == 'z')
fprintf (file, "#comparison eliminated"); fprintf (file, "#comparison eliminated");
else else
fprintf (file, letter == 'c' ? "z" : "nz"); fprintf (file, letter == 'C' ? "z" : "nz");
break; break;
/* Note: these assume appropriate adjustments were made so that /* Note: these assume appropriate adjustments were made so that
...@@ -1595,25 +1596,25 @@ rl78_print_operand_1 (FILE * file, rtx op, int letter) ...@@ -1595,25 +1596,25 @@ rl78_print_operand_1 (FILE * file, rtx op, int letter)
if (letter == 'z') if (letter == 'z')
fprintf (file, "#comparison eliminated"); fprintf (file, "#comparison eliminated");
else else
fprintf (file, letter == 'c' ? "nc" : "c"); fprintf (file, letter == 'C' ? "nc" : "c");
break; break;
case LE: case LE:
if (letter == 'z') if (letter == 'z')
fprintf (file, "br"); fprintf (file, "br");
else else
fprintf (file, letter == 'c' ? "h" : "nh"); fprintf (file, letter == 'C' ? "h" : "nh");
break; break;
case GE: case GE:
if (letter == 'z') if (letter == 'z')
fprintf (file, "br"); fprintf (file, "br");
else else
fprintf (file, letter == 'c' ? "c" : "nc"); fprintf (file, letter == 'C' ? "c" : "nc");
break; break;
case GT: case GT:
if (letter == 'z') if (letter == 'z')
fprintf (file, "#comparison eliminated"); fprintf (file, "#comparison eliminated");
else else
fprintf (file, letter == 'c' ? "nh" : "h"); fprintf (file, letter == 'C' ? "nh" : "h");
break; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment