PPC/S390: [liftoff] Introduce emit_{i64,i32}_add with immediate

Porting: 138d2dfcb1

Original comment:
   This allows immediates to be encoded directly into instructions, rather than
   mov-ing constants to registers first.

   This patch only changes emit_{i64,i32}_add, other emit_ functions will be changed once
   this approach has been approved.

Change-Id: I8442642126555f47a47d511f0ca9d4c00ed82da1
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1546050
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
Reviewed-by: Junliang Yan <jyan@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#60533}
This commit is contained in:
Milad Farazmand 2019-03-29 10:14:26 -04:00 committed by Commit Bot
parent 38986c4750
commit d2d73e9e96
4 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,4 @@
jyan@ca.ibm.com
joransiu@ca.ibm.com
michael_dawson@ca.ibm.com
miladfar@ca.ibm.com

View File

@ -231,6 +231,15 @@ void LiftoffAssembler::emit_i32_remu(Register dst, Register lhs, Register rhs,
BAILOUT("i32_remu");
}
void LiftoffAssembler::emit_i64_add(LiftoffRegister dst, LiftoffRegister lhs,
int32_t imm) {
BAILOUT("i64_add");
}
void LiftoffAssembler::emit_i32_add(Register dst, Register lhs, int32_t imm) {
BAILOUT("i32_add");
}
void LiftoffAssembler::emit_i32_shr(Register dst, Register lhs, int amount) {
BAILOUT("i32_shr");
}

View File

@ -0,0 +1,4 @@
jyan@ca.ibm.com
joransiu@ca.ibm.com
michael_dawson@ca.ibm.com
miladfar@ca.ibm.com

View File

@ -231,6 +231,15 @@ void LiftoffAssembler::emit_i32_remu(Register dst, Register lhs, Register rhs,
BAILOUT("i32_remu");
}
void LiftoffAssembler::emit_i64_add(LiftoffRegister dst, LiftoffRegister lhs,
int32_t imm) {
BAILOUT("i64_add");
}
void LiftoffAssembler::emit_i32_add(Register dst, Register lhs, int32_t imm) {
BAILOUT("i32_add");
}
void LiftoffAssembler::emit_i32_shr(Register dst, Register lhs, int amount) {
BAILOUT("i32_shr");
}