public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/18353] New: ICE with "movaps" in inline asm when using -masm=intel
@ 2004-11-07 6:42 dannysmith at users dot sourceforge dot net
2004-11-07 7:09 ` [Bug target/18353] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: dannysmith at users dot sourceforge dot net @ 2004-11-07 6:42 UTC (permalink / raw)
To: gcc-bugs
Compiling following:
/* movaps.c */
struct v4f { float f[4];} __attribute__ ((aligned (16),packed));
void foo (void)
{
struct v4f a = {{1.0f, 2.0f, 3.0f, 4.0f}};
__asm__ __volatile__ ("movaps %0, %%xmm0"::"X"(a));
}
with gcc -c -msse2 -masm=intel movaps.c
gives:
> movaps.c: In function `void foo()':
> movaps.c:7: internal compiler error: in print_operand, at
config/i386/i386.c:6564
The code compiles without error, using default asm syntax
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --
host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --
enable-languages=c,c++,objc --disable-win32-registry --disable-shared --enable-
sjlj-exceptions --disable-libmudflap --disable-checking
Thread model: win32
gcc version 4.0.0 20041101 (experimental)
3.3.3 and 3.4.3 releases also ICE with -masm=intel
Danny
--
Summary: ICE with "movaps" in inline asm when using -masm=intel
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dannysmith at users dot sourceforge dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-mingw32
GCC host triplet: i686-pc-mingw32
GCC target triplet: i686-pc-mingw32
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18353
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug target/18353] ICE with "movaps" in inline asm when using -masm=intel
2004-11-07 6:42 [Bug target/18353] New: ICE with "movaps" in inline asm when using -masm=intel dannysmith at users dot sourceforge dot net
@ 2004-11-07 7:09 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-07 7:09 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-07 07:09 -------
I think this is invalid, the operand is wrong, you cannot pass a struct to an operand of an asm, see PR
8788 for another example of where the problem can come into play.
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-11-07 07:09:55
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18353
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-07 7:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-07 6:42 [Bug target/18353] New: ICE with "movaps" in inline asm when using -masm=intel dannysmith at users dot sourceforge dot net
2004-11-07 7:09 ` [Bug target/18353] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).