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

Side by Side Diff: src/compiler/arm64/instruction-selector-arm64.cc

Issue 684813004: [arm64] Turn Word64And into tst instruction when possible. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | test/unittests/compiler/arm64/instruction-selector-arm64-unittest.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/instruction-selector-impl.h" 5 #include "src/compiler/instruction-selector-impl.h"
6 #include "src/compiler/node-matchers.h" 6 #include "src/compiler/node-matchers.h"
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 namespace compiler { 10 namespace compiler {
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 break; 1150 break;
1151 case IrOpcode::kInt32Add: 1151 case IrOpcode::kInt32Add:
1152 return VisitWordCompare(this, value, kArm64Cmn32, &cont, true, 1152 return VisitWordCompare(this, value, kArm64Cmn32, &cont, true,
1153 kArithmeticImm); 1153 kArithmeticImm);
1154 case IrOpcode::kInt32Sub: 1154 case IrOpcode::kInt32Sub:
1155 return VisitWordCompare(this, value, kArm64Cmp32, &cont, false, 1155 return VisitWordCompare(this, value, kArm64Cmp32, &cont, false,
1156 kArithmeticImm); 1156 kArithmeticImm);
1157 case IrOpcode::kWord32And: 1157 case IrOpcode::kWord32And:
1158 return VisitWordCompare(this, value, kArm64Tst32, &cont, true, 1158 return VisitWordCompare(this, value, kArm64Tst32, &cont, true,
1159 kLogical32Imm); 1159 kLogical32Imm);
1160 case IrOpcode::kWord64And:
1161 return VisitWordCompare(this, value, kArm64Tst, &cont, true,
1162 kLogical64Imm);
1160 default: 1163 default:
1161 break; 1164 break;
1162 } 1165 }
1163 } 1166 }
1164 1167
1165 // Branch could not be combined with a compare, emit compare against 0. 1168 // Branch could not be combined with a compare, emit compare against 0.
1166 VisitWord32Test(this, value, &cont); 1169 VisitWord32Test(this, value, &cont);
1167 } 1170 }
1168 1171
1169 1172
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 1302
1300 // static 1303 // static
1301 MachineOperatorBuilder::Flags 1304 MachineOperatorBuilder::Flags
1302 InstructionSelector::SupportedMachineOperatorFlags() { 1305 InstructionSelector::SupportedMachineOperatorFlags() {
1303 return MachineOperatorBuilder::kNoFlags; 1306 return MachineOperatorBuilder::kNoFlags;
1304 } 1307 }
1305 1308
1306 } // namespace compiler 1309 } // namespace compiler
1307 } // namespace internal 1310 } // namespace internal
1308 } // namespace v8 1311 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | test/unittests/compiler/arm64/instruction-selector-arm64-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698