This is the mail archive of the gcc-bugs@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]

[Bug target/50310] [4.7 Regression] ICE: in gen_vcondv2div2df, at config/i386/sse.md:1435 with -O -ftree-vectorize and __builtin_isunordered()


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50310

--- Comment #3 from Zdenek Sojka <zsojka at seznam dot cz> 2011-09-07 04:59:06 UTC ---
For a very similiar testcase:

double s1[4];
double s2[4];
long long e[4];

void foo(void)
{
  int i;
  for (i = 0; i < 4; i++)
    e[i] = __builtin_isunordered(s1[i], s2[i]) && s1[i] != s2[i] ? -1 : 0;
}


Compilation fails with:
$ gcc -O -mavx -ftree-vectorize testcase2.c 
/tmp/cc7w0heQ.s: Assembler messages:
/tmp/cc7w0heQ.s:17: Error: operand type mismatch for `vpand'

or

$ gcc -O -mavx -ftree-vectorize testcase2.c -masm=intel   
/tmp/ccyNaxE9.s: Assembler messages:
/tmp/ccyNaxE9.s:18: Error: operand size mismatch for `vpand'

(-mavx is needed)

I don't know if that's related, GCC 4.6 generates very different code. My as
might be outdated as well.


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