This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: target/9068: [x86] comisd & comiss intel-syntax constraints areincorrect


This testcase:

int ice_using_intel_syntax(int count, double sum) {
int test;
test = (sum/count > 0.0000001);
return test;
}

crashes with

ice_using_intel_syntax.c: In function `ice_using_intel_syntax':
ice_using_intel_syntax.c:5: output_operand: operand number missing after %-letter
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

on 3.2.x, 3.3-branch, and mainline when compiled with:

gcc -Wall -march=pentium4 -ffast-math -mfpmath=sse -masm=intel ice_using_intel_syntax.c

2002-12-26 Kelley Cook <kelleycook@comcast.net>

* config/i386/i386.c (output_fp_compare): Correct typo in the
Intel alternatives for the commisd and comiss patterns.

--- config/i386/i386.c.orig 2002-12-27 11:03:30.656250000 -0500
+++ config/i386/i386.c 2002-12-27 11:04:01.187500000 -0500
@@ -7484,12 +7484,12 @@ output_fp_compare (insn, operands, eflag
if (unordered_p)
return "ucomiss\t{%1, %0|%0, %1}";
else
- return "comiss\t{%1, %0|%0, %y}";
+ return "comiss\t{%1, %0|%0, %1}";
else
if (unordered_p)
return "ucomisd\t{%1, %0|%0, %1}";
else
- return "comisd\t{%1, %0|%0, %y}";
+ return "comisd\t{%1, %0|%0, %1}";
}

if (! STACK_TOP_P (cmp_op0))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]