------- Comment #2 from hjl dot tools at gmail dot com 2009-08-04 14:15 ------- (In reply to comment #1) > We enter standard_sse_constant_opcode with: > > (const_vector:V4DI [ > (const_int -1 [0xffffffffffffffff]) > (const_int -1 [0xffffffffffffffff]) > (const_int -1 [0xffffffffffffffff]) > (const_int -1 [0xffffffffffffffff]) > ]) > > And standard_sse_constant_p returns 3 in this case. > > H.J., can this operation be implemented with AVX vcmpeq instruction? >
We need to 2 insns to generate all 1s for 256bit. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40957