[Bug middle-end/29881] union causes inefficient code

2007-08-07 Thread jose dot r dot fonseca at gmail dot com
--- Comment #5 from jose dot r dot fonseca at gmail dot com 2007-08-07 14:01 --- Note that this problem is actually more general. I bumped into this when doing a very used pattern for MMX/SSE2 programming, which is making a union between a vector type and an array of integers: union

[Bug middle-end/29881] union causes inefficient code

2007-08-07 Thread jose dot r dot fonseca at gmail dot com
--- Comment #6 from jose dot r dot fonseca at gmail dot com 2007-08-07 14:18 --- Created an attachment (id=14031) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14031action=view) Example code This is the source-code for my example above. To get the assembly run as: gcc -S -DCASE