This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/79565] ICE in copy_to_mode_reg, at explow.c:612
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 09 Aug 2017 16:26:08 +0000
- Subject: [Bug target/79565] ICE in copy_to_mode_reg, at explow.c:612
- Auto-submitted: auto-generated
- References: <bug-79565-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79565
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 41959
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41959&action=edit
A patch
I got
[hjl@gnu-6 pr79565]$ cat x.i
typedef float a __attribute__ ((__vector_size__ (16)));
a b, d;
int __attribute__ ((__vector_size__ (2 * sizeof (int)))) c;
void e () { d = __builtin_ia32_cvtpi2ps (b, c); }
[hjl@gnu-6 pr79565]$ make x.s
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -mno-mmx -S -o x.s x.i
x.i: In function ‘e’:
x.i:4:17: error: ‘__builtin_ia32_cvtpi2ps’ needs isa option -m32 -msse -mmmx
void e () { d = __builtin_ia32_cvtpi2ps (b, c); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:21: x.s] Error 1
[hjl@gnu-6 pr79565]$ cat y.i
typedef short v4hi __attribute__ ((__vector_size__ (4 * sizeof (short))));
v4hi a, b, c;
void
foo (void)
{
a = __builtin_ia32_psubusw (b, c);
}
[hjl@gnu-6 pr79565]$ make y.s
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -mno-mmx -S -o y.s y.i
y.i: In function ‘foo’:
y.i:6:7: error: ‘__builtin_ia32_psubusw’ needs isa option -m32 -mmmx
a = __builtin_ia32_psubusw (b, c);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:21: y.s] Error 1
[hjl@gnu-6 pr79565]$