Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: src/DartARM32/assembler_arm.cc

Issue 1641753003: Fix issues raised in CL 1645683003 by stichnot. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/IceAssemblerARM32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 // This is forked from Dart revision df52deea9f25690eb8b66c5995da92b70f7ac1fe 5 // This is forked from Dart revision df52deea9f25690eb8b66c5995da92b70f7ac1fe
6 // Please update the (git) revision if we merge changes from Dart. 6 // Please update the (git) revision if we merge changes from Dart.
7 // https://code.google.com/p/dart/wiki/GettingTheSource 7 // https://code.google.com/p/dart/wiki/GettingTheSource
8 8
9 #include "vm/globals.h" // NOLINT 9 #include "vm/globals.h" // NOLINT
10 #if defined(TARGET_ARCH_ARM) 10 #if defined(TARGET_ARCH_ARM)
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 920
921 // Moved to Arm32::AssemblerARM32::vmovss() 921 // Moved to Arm32::AssemblerARM32::vmovss()
922 void Assembler::vmovs(SRegister sd, SRegister sm, Condition cond) { 922 void Assembler::vmovs(SRegister sd, SRegister sm, Condition cond) {
923 EmitVFPsss(cond, B23 | B21 | B20 | B6, sd, S0, sm); 923 EmitVFPsss(cond, B23 | B21 | B20 | B6, sd, S0, sm);
924 } 924 }
925 925
926 // Moved to Arm32::AssemblerARM32::vmovdd() 926 // Moved to Arm32::AssemblerARM32::vmovdd()
927 void Assembler::vmovd(DRegister dd, DRegister dm, Condition cond) { 927 void Assembler::vmovd(DRegister dd, DRegister dm, Condition cond) {
928 EmitVFPddd(cond, B23 | B21 | B20 | B6, dd, D0, dm); 928 EmitVFPddd(cond, B23 | B21 | B20 | B6, dd, D0, dm);
929 } 929 }
930 #endif
931 930
932 #if 0
933 // Moved to Arm32::AssemblerARM32::vmovs() 931 // Moved to Arm32::AssemblerARM32::vmovs()
934 bool Assembler::vmovs(SRegister sd, float s_imm, Condition cond) { 932 bool Assembler::vmovs(SRegister sd, float s_imm, Condition cond) {
935 if (TargetCPUFeatures::arm_version() != ARMv7) { 933 if (TargetCPUFeatures::arm_version() != ARMv7) {
936 return false; 934 return false;
937 } 935 }
938 uint32_t imm32 = bit_cast<uint32_t, float>(s_imm); 936 uint32_t imm32 = bit_cast<uint32_t, float>(s_imm);
939 if (((imm32 & ((1 << 19) - 1)) == 0) && 937 if (((imm32 & ((1 << 19) - 1)) == 0) &&
940 ((((imm32 >> 25) & ((1 << 6) - 1)) == (1 << 5)) || 938 ((((imm32 >> 25) & ((1 << 6) - 1)) == (1 << 5)) ||
941 (((imm32 >> 25) & ((1 << 6) - 1)) == ((1 << 5) -1)))) { 939 (((imm32 >> 25) & ((1 << 6) - 1)) == ((1 << 5) -1)))) {
942 uint8_t imm8 = ((imm32 >> 31) << 7) | (((imm32 >> 29) & 1) << 6) | 940 uint8_t imm8 = ((imm32 >> 31) << 7) | (((imm32 >> 29) & 1) << 6) |
(...skipping 2746 matching lines...) Expand 10 before | Expand all | Expand 10 after
3689 3687
3690 3688
3691 const char* Assembler::FpuRegisterName(FpuRegister reg) { 3689 const char* Assembler::FpuRegisterName(FpuRegister reg) {
3692 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); 3690 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters));
3693 return fpu_reg_names[reg]; 3691 return fpu_reg_names[reg];
3694 } 3692 }
3695 3693
3696 } // namespace dart 3694 } // namespace dart
3697 3695
3698 #endif // defined TARGET_ARCH_ARM 3696 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/IceAssemblerARM32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698