[RFH] Move some flag_unsafe_math_optimizations using simplify and match

2015-08-07 Thread Hurugalawadi, Naveen
Hi,  Please find attached the patch "simplify-1.patch" that moves some "flag_unsafe_math_optimizations" from fold-const.c to simplify and match. However, I am facing some issues with cbrt, exp2, pow10 and exp10 functions. Please review the patch and let me know whether its the right way to imp

vectorize conditional expressions in aarch64

2015-08-07 Thread Kumar, Venkataramanan
Hi , For the below code x86_64 is able to vectorize. #define LEN 32000 __attribute__((aligned(32))) float a[LEN], b[LEN],c[LEN]; void test() { for (int i = 0; i < LEN; i++) { if (b[i] > (float)0.) { a[i] = b[i]; } } } X86_64 ASM L2: vmovaps b(%rax), %ymm0