| Index: src/ia32/macro-assembler-ia32.cc
|
| diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc
|
| index d7b4ac7a038ea9af6fc5829daec256b63ca4d88d..906c369172086454690cf6b6d612ff8204d3bc8a 100644
|
| --- a/src/ia32/macro-assembler-ia32.cc
|
| +++ b/src/ia32/macro-assembler-ia32.cc
|
| @@ -2270,18 +2270,19 @@
|
| movd(dst, src);
|
| return;
|
| }
|
| + DCHECK_EQ(1, imm8);
|
| if (CpuFeatures::IsSupported(SSE4_1)) {
|
| CpuFeatureScope sse_scope(this, SSE4_1);
|
| pextrd(dst, src, imm8);
|
| return;
|
| }
|
| - DCHECK_LT(imm8, 4);
|
| - pshufd(xmm0, src, imm8);
|
| + pshufd(xmm0, src, 1);
|
| movd(dst, xmm0);
|
| }
|
|
|
|
|
| void MacroAssembler::Pinsrd(XMMRegister dst, const Operand& src, int8_t imm8) {
|
| + DCHECK(imm8 == 0 || imm8 == 1);
|
| if (CpuFeatures::IsSupported(SSE4_1)) {
|
| CpuFeatureScope sse_scope(this, SSE4_1);
|
| pinsrd(dst, src, imm8);
|
|
|