Commit 694aa3f2 by Jim Wilson

(jump, tablejump_internal1, tablejump_internal2): Add

-mabi=n32 support.

From-SVN: r12130
parent 98128ff6
...@@ -5808,7 +5808,7 @@ move\\t%0,%z4\\n\\ ...@@ -5808,7 +5808,7 @@ move\\t%0,%z4\\n\\
/* ??? I don't know why this is necessary. This works around an /* ??? I don't know why this is necessary. This works around an
assembler problem that appears when a label is defined, then referenced assembler problem that appears when a label is defined, then referenced
in a switch table, then used in a `j' instruction. */ in a switch table, then used in a `j' instruction. */
else if (ABI_64BIT && mips_isa >= 3) else if (mips_abi != ABI_32)
return \"%*b\\t%l0\"; return \"%*b\\t%l0\";
else else
return \"%*j\\t%l0\"; return \"%*j\\t%l0\";
...@@ -5886,7 +5886,7 @@ move\\t%0,%z4\\n\\ ...@@ -5886,7 +5886,7 @@ move\\t%0,%z4\\n\\
"* "*
{ {
/* .cpadd expands to add REG,REG,$gp when pic, and nothing when not pic. */ /* .cpadd expands to add REG,REG,$gp when pic, and nothing when not pic. */
if (TARGET_ABICALLS && (! ABI_64BIT || mips_isa < 3)) if (TARGET_ABICALLS && mips_abi == ABI_32)
output_asm_insn (\".cpadd\\t%0\", operands); output_asm_insn (\".cpadd\\t%0\", operands);
return \"%*j\\t%0\"; return \"%*j\\t%0\";
}" }"
...@@ -5906,7 +5906,7 @@ move\\t%0,%z4\\n\\ ...@@ -5906,7 +5906,7 @@ move\\t%0,%z4\\n\\
{ {
/* .cpdadd expands to dadd REG,REG,$gp when pic, and nothing when not pic. */ /* .cpdadd expands to dadd REG,REG,$gp when pic, and nothing when not pic. */
/* ??? SGI as does not have a .cpdadd. */ /* ??? SGI as does not have a .cpdadd. */
if (TARGET_ABICALLS && (! ABI_64BIT || mips_isa < 3)) if (TARGET_ABICALLS && mips_abi == ABI_32)
output_asm_insn (\".cpadd\\t%0\", operands); output_asm_insn (\".cpadd\\t%0\", operands);
return \"%*j\\t%0\"; return \"%*j\\t%0\";
}" }"
......
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