I've also just noticed this highly disturbing example:

    #include <arm_neon.h>
    #if WTF
    short varInt;
    __fp16 varFloat;
    
    short foo(__fp16 in) {
      return *(short *)&in;
    }
    
    __fp16 bar(short in) {
      return *(__fp16 *)&in;
    }
    
    float baz() {
      //  return varFloat;
    }
    #endif
    
    
    int16x4_t tim(float16x4_t a) {
      return vreinterpret_s16_f16(a);
      //  return vreinterpret_s16_f16(a);
    }

The parameter type for "tim" changes for me depending on whether WTF is defined 
(and if it's "<4 x half>", AArch64 copes badly).

Cheers.

Tim.

http://reviews.llvm.org/D4456



_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to