Commit 84daf4a6 authored by Ivica Bogosavljevic's avatar Ivica Bogosavljevic Committed by Commit Bot

MIPS[64]: Fix wrong operand call in SIMD S8x16Concat operator

TEST=cctest/test-run-wasm-simd/RunWasm_S8x16Concat_turbofan

Change-Id: Ifcc14b57d65d15e5ae8477a05746027356bac547
Reviewed-on: https://chromium-review.googlesource.com/1166909Reviewed-by: 's avatarBill Budge <bbudge@chromium.org>
Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Ivica Bogosavljevic <ibogosavljevic@wavecomp.com>
Cr-Commit-Position: refs/heads/master@{#55012}
parent 5012e883
...@@ -2170,8 +2170,8 @@ void InstructionSelector::VisitS8x16Shuffle(Node* node) { ...@@ -2170,8 +2170,8 @@ void InstructionSelector::VisitS8x16Shuffle(Node* node) {
uint8_t offset; uint8_t offset;
MipsOperandGenerator g(this); MipsOperandGenerator g(this);
if (TryMatchConcat(shuffle, &offset)) { if (TryMatchConcat(shuffle, &offset)) {
Emit(kMipsS8x16Concat, g.DefineSameAsFirst(node), g.UseRegister(input0), Emit(kMipsS8x16Concat, g.DefineSameAsFirst(node), g.UseRegister(input1),
g.UseRegister(input1), g.UseImmediate(offset)); g.UseRegister(input0), g.UseImmediate(offset));
return; return;
} }
if (TryMatch32x4Shuffle(shuffle, shuffle32x4)) { if (TryMatch32x4Shuffle(shuffle, shuffle32x4)) {
......
...@@ -2837,8 +2837,8 @@ void InstructionSelector::VisitS8x16Shuffle(Node* node) { ...@@ -2837,8 +2837,8 @@ void InstructionSelector::VisitS8x16Shuffle(Node* node) {
uint8_t offset; uint8_t offset;
Mips64OperandGenerator g(this); Mips64OperandGenerator g(this);
if (TryMatchConcat(shuffle, &offset)) { if (TryMatchConcat(shuffle, &offset)) {
Emit(kMips64S8x16Concat, g.DefineSameAsFirst(node), g.UseRegister(input0), Emit(kMips64S8x16Concat, g.DefineSameAsFirst(node), g.UseRegister(input1),
g.UseRegister(input1), g.UseImmediate(offset)); g.UseRegister(input0), g.UseImmediate(offset));
return; return;
} }
if (TryMatch32x4Shuffle(shuffle, shuffle32x4)) { if (TryMatch32x4Shuffle(shuffle, shuffle32x4)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment