Re: [RFT PATCH, i386]: Optimize zero-extensions from mask registers

2016-08-22 Thread Kirill Yukhin
Hello Uroš, On 05 Aug 14:22, Uros Bizjak wrote: > Hello! > > Attached patch was inspired by assembly from PR 72805 testcase. > Currently, the compiler generates: > > test: > vpternlogd $0xFF, %zmm0, %zmm0, %zmm0 > vpxord %zmm1, %zmm1, %zmm1 > vpcmpd $1, %zmm1, %zmm0

[RFT PATCH, i386]: Optimize zero-extensions from mask registers

2016-08-05 Thread Uros Bizjak
Hello! Attached patch was inspired by assembly from PR 72805 testcase. Currently, the compiler generates: test: vpternlogd $0xFF, %zmm0, %zmm0, %zmm0 vpxord %zmm1, %zmm1, %zmm1 vpcmpd $1, %zmm1, %zmm0, %k1 kmovw %k1, %eax movzwl %ax, %eax