diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 171a48026bf..38fea4efc9f 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -8241,7 +8241,10 @@ standard_sse_constant_opcode (rtx insn, rtx x) } case 2: - return "%vpcmpeqd\t%0, %0, %0"; + if (TARGET_AVX) + return "vpcmpeqd\t%0, %0, %0"; + else + return "pcmpeqd\t%0, %0"; default: break;