Commit 5c033b9f by Ulrich Weigand Committed by Ulrich Weigand

s390.md ("literal_pool_31"): Output pool anchor label even if pool empty when generating PIC.

	* config/s390/s390.md ("literal_pool_31"): Output pool anchor
	label even if pool empty when generating PIC.
	("literal_pool_31", "literal_pool_64"): Coding style cleanup.

From-SVN: r64981
parent d29cc32f
2003-03-28 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390.md ("literal_pool_31"): Output pool anchor
label even if pool empty when generating PIC.
("literal_pool_31", "literal_pool_64"): Coding style cleanup.
2003-03-28 Kazu Hirata <kazu@cs.umass.edu>, 2003-03-28 Kazu Hirata <kazu@cs.umass.edu>,
Dhananjay Deshpande <dhananjayd@kpit.com> Dhananjay Deshpande <dhananjayd@kpit.com>
......
...@@ -7031,14 +7031,21 @@ ...@@ -7031,14 +7031,21 @@
(label_ref (match_operand 1 "" ""))) (label_ref (match_operand 1 "" "")))
(use (label_ref (match_operand 2 "" "")))] (use (label_ref (match_operand 2 "" "")))]
"" ""
"*
{ {
if (s390_nr_constants) { if (s390_nr_constants)
output_asm_insn (\"bras\\t%0,%2\", operands); {
s390_output_constant_pool (operands[1], operands[2]); output_asm_insn ("bras\\t%0,%2", operands);
} s390_output_constant_pool (operands[1], operands[2]);
return \"\"; }
}" else if (flag_pic)
{
/* We need the anchor label in any case. */
(*targetm.asm_out.internal_label) (asm_out_file, "L",
CODE_LABEL_NUMBER (operands[1]));
}
return "";
}
[(set_attr "op_type" "NN") [(set_attr "op_type" "NN")
(set_attr "type" "larl")]) (set_attr "type" "larl")])
...@@ -7048,13 +7055,14 @@ ...@@ -7048,13 +7055,14 @@
(label_ref (match_operand 1 "" ""))) (label_ref (match_operand 1 "" "")))
(use (label_ref (match_operand 2 "" "")))] (use (label_ref (match_operand 2 "" "")))]
"" ""
"*
{ {
if (s390_nr_constants) { if (s390_nr_constants)
output_asm_insn (\"larl\\t%0,%1\", operands); {
s390_output_constant_pool (operands[1], operands[2]); output_asm_insn ("larl\\t%0,%1", operands);
} s390_output_constant_pool (operands[1], operands[2]);
return \"\"; }
}"
return "";
}
[(set_attr "op_type" "NN") [(set_attr "op_type" "NN")
(set_attr "type" "larl")]) (set_attr "type" "larl")])
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