diff options
author | Calin Juravle <calin@google.com> | 2014-12-08 14:24:46 +0000 |
---|---|---|
committer | Calin Juravle <calin@google.com> | 2014-12-08 17:02:11 +0000 |
commit | d2ec87d84057174d4884ee16f652cbcfd31362e9 (patch) | |
tree | 9456c5851f157566380c37895407dfce4749bb4d /compiler/optimizing/builder.cc | |
parent | f551efff34c20e2f0cf962c3fc267204d5e7611f (diff) | |
download | art-d2ec87d84057174d4884ee16f652cbcfd31362e9.tar.gz art-d2ec87d84057174d4884ee16f652cbcfd31362e9.tar.bz2 art-d2ec87d84057174d4884ee16f652cbcfd31362e9.zip |
[optimizing compiler] Add REM_FLOAT and REM_DOUBLE
- for arm, x86, x86_64 backends
- reinstated fmod quick entry points for x86. This is a partial revert
of bd3682eada753de52975ae2b4a712bd87dc139a6 which added inline assembly
for floting point rem on x86. Note that Quick still uses the inline
version.
- fix rem tests for longs
Change-Id: I73be19a9f2f2bcf3f718d9ca636e67bdd72b5440
Diffstat (limited to 'compiler/optimizing/builder.cc')
-rw-r--r-- | compiler/optimizing/builder.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/compiler/optimizing/builder.cc b/compiler/optimizing/builder.cc index ca72f3f24..0a3f83024 100644 --- a/compiler/optimizing/builder.cc +++ b/compiler/optimizing/builder.cc @@ -1435,6 +1435,16 @@ bool HGraphBuilder::AnalyzeDexInstruction(const Instruction& instruction, uint32 break; } + case Instruction::REM_FLOAT: { + Binop_23x<HRem>(instruction, Primitive::kPrimFloat, dex_pc); + break; + } + + case Instruction::REM_DOUBLE: { + Binop_23x<HRem>(instruction, Primitive::kPrimDouble, dex_pc); + break; + } + case Instruction::AND_INT: { Binop_23x<HAnd>(instruction, Primitive::kPrimInt); break; @@ -1574,6 +1584,16 @@ bool HGraphBuilder::AnalyzeDexInstruction(const Instruction& instruction, uint32 break; } + case Instruction::REM_FLOAT_2ADDR: { + Binop_12x<HRem>(instruction, Primitive::kPrimFloat, dex_pc); + break; + } + + case Instruction::REM_DOUBLE_2ADDR: { + Binop_12x<HRem>(instruction, Primitive::kPrimDouble, dex_pc); + break; + } + case Instruction::SHL_INT_2ADDR: { Binop_12x_shift<HShl>(instruction, Primitive::kPrimInt); break; |