mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
Bug 1647920 - Part 3: Transpile Math.trunc in Warp. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D80992
This commit is contained in:
parent
beacd1a290
commit
61b38f0a41
@ -931,7 +931,7 @@
|
||||
|
||||
- name: MathTruncToInt32Result
|
||||
shared: true
|
||||
transpile: false
|
||||
transpile: true
|
||||
args:
|
||||
input: NumberId
|
||||
|
||||
|
@ -1304,6 +1304,17 @@ bool WarpCacheIRTranspiler::emitMathCeilToInt32Result(NumberOperandId inputId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool WarpCacheIRTranspiler::emitMathTruncToInt32Result(
|
||||
NumberOperandId inputId) {
|
||||
MDefinition* input = getOperand(inputId);
|
||||
|
||||
auto* ins = MTrunc::New(alloc(), input);
|
||||
add(ins);
|
||||
|
||||
pushResult(ins);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool WarpCacheIRTranspiler::emitMathRoundToInt32Result(
|
||||
NumberOperandId inputId) {
|
||||
MDefinition* input = getOperand(inputId);
|
||||
|
Loading…
Reference in New Issue
Block a user