Commit 8c0b51a9 authored by Zhao Jiazhong's avatar Zhao Jiazhong Committed by Commit Bot

[mips][Liftoff] Implement i32 shift with immediate

port 9c4ffc38 https://crrev.com/c/1897539

Original Commit Message:

  [Liftoff] Implement i32 shift with immediate

  In fact, shifts are used most often with a fixed shift amount. This CL
  adds special handling for this in Liftoff, to generate shorter and
  faster code.

Change-Id: I71ae0013f88b928188e34a54da9ca93c617fd6e2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1902888
Auto-Submit: Zhao Jiazhong <kyslie3100@gmail.com>
Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64826}
parent 98b76b46
......@@ -732,8 +732,8 @@ bool LiftoffAssembler::emit_i32_popcnt(Register dst, Register src) {
instruction(dst, src, amount); \
}
I32_SHIFTOP(shl, sllv)
I32_SHIFTOP(sar, srav)
I32_SHIFTOP_I(shl, sll)
I32_SHIFTOP_I(sar, sra)
I32_SHIFTOP_I(shr, srl)
#undef I32_SHIFTOP
......
......@@ -660,8 +660,8 @@ bool LiftoffAssembler::emit_i32_popcnt(Register dst, Register src) {
instruction(dst, src, amount); \
}
I32_SHIFTOP(shl, sllv)
I32_SHIFTOP(sar, srav)
I32_SHIFTOP_I(shl, sll)
I32_SHIFTOP_I(sar, sra)
I32_SHIFTOP_I(shr, srl)
#undef I32_SHIFTOP
......
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