Bug 169765 - [g++] Generates invalid MMX code for _mm_set_pi32()
Summary: [g++] Generates invalid MMX code for _mm_set_pi32()
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-10-03 13:08 UTC by Enrico Scholz
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: 4.0.2-3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-10-08 08:30:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Enrico Scholz 2005-10-03 13:08:35 UTC
Description of problem:

---
$ cat foo.c 
#include <mmintrin.h>

extern void bar(__m64);
int foo()
{
        bar(_mm_set_pi32(0x000000FF,0xFFFF00FF));
}
---

| $ g++ -c -mmmx -O2 foo.c 
| /tmp/ccttaomY.s: Assembler messages:
| /tmp/ccttaomY.s:17: Error: suffix or operands invalid for `mov'


Does not happen without '-O2' or with 'gcc' (instead of 'g++').



Version-Release number of selected component (if applicable):

gcc-4.0.1-4.fc4


How reproducible:

100%

Comment 2 Jakub Jelinek 2005-10-08 08:30:24 UTC
Should be fixed in gcc-4.0.2-3.


Note You need to log in before you can comment on or make changes to this bug.