Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:25
erlang
1166-Simplify-type-tests-for-the-div-and-rem-op...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1166-Simplify-type-tests-for-the-div-and-rem-operators.patch of Package erlang
From 0e8f02a364b610448adcaf41ec2c6ffd4a81f7b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org> Date: Sat, 10 Sep 2022 07:16:46 +0200 Subject: [PATCH 6/7] Simplify type tests for the div and rem operators --- erts/emulator/beam/jit/x86/instr_arith.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erts/emulator/beam/jit/x86/instr_arith.cpp b/erts/emulator/beam/jit/x86/instr_arith.cpp index 9e5747bdf0..b013a00e11 100644 --- a/erts/emulator/beam/jit/x86/instr_arith.cpp +++ b/erts/emulator/beam/jit/x86/instr_arith.cpp @@ -711,8 +711,7 @@ void BeamModuleAssembler::emit_div_rem(const ArgLabel &Fail, } else if (always_one_of(LHS, BEAM_TYPE_FLOAT | BEAM_TYPE_INTEGER)) { comment("simplified test for small dividend since it is an " "integer"); - a.mov(ARG2d, x86::eax); - a.test(ARG2d, imm(TAG_PRIMARY_LIST)); + a.test(x86::al, imm(TAG_PRIMARY_LIST)); a.short_().je(generic_div); } else { comment("testing for a small dividend"); -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor