bash-3.2$ cat x.c
unsigned long long
foo (unsigned long long x, unsigned long long y)
{
return __builtin_ia32_crc32di (x, y);
}
bash-3.2$ /usr/gcc-4.3/bin/gcc -m32 -msse4 -c x.c
x.c: In function foo:
x.c:5: error: unrecognizable insn:
(insn 6 5 7 3 x.c:4 (set (reg:DI 58 [ D.1635 ])
(unspec:DI [
(reg:DI 60)
(mem/c/i:DI (plus:SI (reg/f:SI 53 virtual-incoming-args)
(const_int 8 [0x8])) [0 y+0 S8 A32])
] 143)) -1 (nil))
x.c:5: internal compiler error: in extract_insn, at recog.c:1990
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
bash-3.2$
__builtin_ia32_crc32di shouldn't be defined for 32bit.
--
Summary: Incorrect crc32 builtins for ia32
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl dot tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36095