MIPS: Fix reg use in SIMD.js Add the other SIMD Phase 1 types.
authorpaul.lind <paul.lind@imgtec.com>
Tue, 4 Aug 2015 11:09:19 +0000 (04:09 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 4 Aug 2015 11:09:32 +0000 (11:09 +0000)
Port 7b9670b63b486ba3b6f8a569552d307282dbccfd

Only fails in debug builds.

TEST=mjsunit/harmony/simd
BUG=

Review URL: https://codereview.chromium.org/1264103005

Cr-Commit-Position: refs/heads/master@{#29993}

src/mips/lithium-codegen-mips.cc
src/mips64/lithium-codegen-mips64.cc

index 88adcd4..37fa97d 100644 (file)
@@ -2186,7 +2186,7 @@ void LCodeGen::DoBranch(LBranch* instr) {
         Label not_simd;
         const Register scratch = scratch1();
         __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset));
-        __ Branch(&not_simd, lt, at, Operand(FIRST_SIMD_VALUE_TYPE));
+        __ Branch(&not_simd, lt, scratch, Operand(FIRST_SIMD_VALUE_TYPE));
         __ Branch(instr->TrueLabel(chunk_), le, scratch,
                   Operand(LAST_SIMD_VALUE_TYPE));
         __ bind(&not_simd);
index fe8ee01..b676fad 100644 (file)
@@ -2287,7 +2287,7 @@ void LCodeGen::DoBranch(LBranch* instr) {
         Label not_simd;
         const Register scratch = scratch1();
         __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset));
-        __ Branch(&not_simd, lt, at, Operand(FIRST_SIMD_VALUE_TYPE));
+        __ Branch(&not_simd, lt, scratch, Operand(FIRST_SIMD_VALUE_TYPE));
         __ Branch(instr->TrueLabel(chunk_), le, scratch,
                   Operand(LAST_SIMD_VALUE_TYPE));
         __ bind(&not_simd);