aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1999-01-01 03:53:08 -0700
committerJeff Law <law@gcc.gnu.org>1999-01-01 03:53:08 -0700
commit270fc2ae009f7188730f63b555a2b0f9fc339bf1 (patch)
treefd0c5b801161e0cf8282c2af8fa96538f69d46fa
parenta94b6ed9887f1eeaca954d80d7461e7f05aec4ae (diff)
downloadgcc-270fc2ae009f7188730f63b555a2b0f9fc339bf1.zip
gcc-270fc2ae009f7188730f63b555a2b0f9fc339bf1.tar.gz
gcc-270fc2ae009f7188730f63b555a2b0f9fc339bf1.tar.bz2
i386.md (doubleword shifts): Fix dumb mistakes in previous change.
* i386.md (doubleword shifts): Fix dumb mistakes in previous change. From-SVN: r24457
-rw-r--r--gcc/config/i386/i386.md38
1 files changed, 16 insertions, 22 deletions
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index ded8f4e..e8adf94 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -1,5 +1,5 @@
; GCC machine description for Intel X86.
-;; Copyright (C) 1988, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
+;; Copyright (C) 1988, 94, 95, 96, 97, 98, 1999 Free Software Foundation, Inc.
;; Mostly by William Schelter.
;; This file is part of GNU CC.
@@ -4687,8 +4687,7 @@ byte_xor_operation:
""
"*
{
- rtx xops[4], low[1], high[1];
- static int ashldi_label_number;
+ rtx xops[5], low[1], high[1];
CC_STATUS_INIT;
@@ -4697,17 +4696,16 @@ byte_xor_operation:
xops[1] = GEN_INT (32);
xops[2] = low[0];
xops[3] = high[0];
+ xops[4] = gen_label_rtx ();
output_asm_insn (AS3_SHIFT_DOUBLE (shld%L3,%0,%2,%3), xops);
output_asm_insn (AS2 (sal%L2,%0,%2), xops);
output_asm_insn (AS2 (test%B0,%1,%b0), xops);
- fputs (\"\\tje \", asm_out_file);
- ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, \"LASHLDI\", ashldi_label_number);
- fputs (\"\\n\", asm_out_file);
+ output_asm_insn (AS1 (je,%X4), xops);
output_asm_insn (AS2 (mov%L3,%2,%3), xops); /* Fast shift by 32 */
output_asm_insn (AS2 (xor%L2,%2,%2), xops);
- ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, \"LASHLDI\", ashldi_label_number);
- ashldi_label_number++;
+ ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, \"L\",
+ CODE_LABEL_NUMBER (xops[4]));
RET;
}")
@@ -4877,8 +4875,7 @@ byte_xor_operation:
""
"*
{
- rtx xops[4], low[1], high[1];
- static int ashrdi_label_number;
+ rtx xops[5], low[1], high[1];
CC_STATUS_INIT;
@@ -4887,18 +4884,17 @@ byte_xor_operation:
xops[1] = GEN_INT (32);
xops[2] = low[0];
xops[3] = high[0];
+ xops[4] = gen_label_rtx ();
output_asm_insn (AS3_SHIFT_DOUBLE (shrd%L2,%0,%3,%2), xops);
output_asm_insn (AS2 (sar%L3,%0,%3), xops);
output_asm_insn (AS2 (test%B0,%1,%b0), xops);
- fputs (\"\\tje \", asm_out_file);
- ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, \"LASHRDI\", ashrdi_label_number);
- fputs (\"\\n\", asm_out_file);
+ output_asm_insn (AS1 (je,%X4), xops);
xops[1] = GEN_INT (31);
output_asm_insn (AS2 (mov%L2,%3,%2), xops);
output_asm_insn (AS2 (sar%L3,%1,%3), xops); /* shift by 32 */
- ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, \"LASHRDI\", ashrdi_label_number);
- ashrdi_label_number++;
+ ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, \"L\",
+ CODE_LABEL_NUMBER (xops[4]));
RET;
}")
@@ -5043,8 +5039,7 @@ byte_xor_operation:
""
"*
{
- rtx xops[4], low[1], high[1];
- static int lshrdi_label_number;
+ rtx xops[5], low[1], high[1];
CC_STATUS_INIT;
@@ -5053,17 +5048,16 @@ byte_xor_operation:
xops[1] = GEN_INT (32);
xops[2] = low[0];
xops[3] = high[0];
+ xops[4] = gen_label_rtx ();
output_asm_insn (AS3_SHIFT_DOUBLE (shrd%L2,%0,%3,%2), xops);
output_asm_insn (AS2 (shr%L3,%0,%3), xops);
output_asm_insn (AS2 (test%B0,%1,%b0), xops);
- fputs (\"\\tje \", asm_out_file);
- ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, \"LLSHRDI\", lshrdi_label_number);
- fputs (\"\\n\", asm_out_file);
+ output_asm_insn (AS1 (je,%X4), xops);
output_asm_insn (AS2 (mov%L2,%3,%2), xops); /* Fast shift by 32 */
output_asm_insn (AS2 (xor%L3,%3,%3), xops);
- ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, \"LLSHRDI\", lshrdi_label_number);
- lshrdi_label_number++;
+ ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, \"L\",
+ CODE_LABEL_NUMBER (xops[4]));
RET;
}")