[LLVMdev] Making GEP into vector illegal?

Mike Stump mrs at apple.com
Tue Oct 14 16:30:34 PDT 2008

On Oct 14, 2008, at 1:54 PM, Eli Friedman wrote:
> Maybe... although note that with gcc vector intrinsics, this violates
> strict aliasing.  gcc does allow you to use a slightly more elaborate
> workaround with a union, though.

Hum what's your take on this then:

/* The Intel API is flexible enough that we must allow aliasing with  
    vector types, and their scalar components.  */
/* APPLE LOCAL 4505813 */
typedef long long __m64 __attribute__ ((__vector_size__ (8),  


More information about the llvm-dev mailing list