http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54446
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2012-09-01 14:30:22 UTC ---
It has been fixed in GCC 4.7:
.cfi_startproc
vmovdqa (%rdi), %ymm0
vptest %ymm0, %ymm0
sete %al
ret
.cfi_endproc