Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 9f8620194fa5d2325e1719a58718a2efc4e3f2d6..9dd4b5d460326b320280b01622fc8db4d64858c6 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -2278,19 +2278,18 @@ void MacroAssembler::Pextrd(Register dst, XMMRegister src, int8_t imm8) { |
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_EQ(1, 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); |