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

Unified Diff: test/cctest/test-assembler-arm.cc

Issue 11745030: ARM: generate integer zero in a uniform manner. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/arm/stub-cache-arm.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-assembler-arm.cc
diff --git a/test/cctest/test-assembler-arm.cc b/test/cctest/test-assembler-arm.cc
index 9fadd6b7fd56009b41fc7d91e36d887640e9e686..9b4313359fef0da0fb936ea456893c0957b68452 100644
--- a/test/cctest/test-assembler-arm.cc
+++ b/test/cctest/test-assembler-arm.cc
@@ -89,7 +89,7 @@ TEST(1) {
Label L, C;
__ mov(r1, Operand(r0));
- __ mov(r0, Operand(0, RelocInfo::NONE32));
+ __ mov(r0, Operand::Zero());
__ b(&C);
__ bind(&L);
@@ -97,7 +97,7 @@ TEST(1) {
__ sub(r1, r1, Operand(1));
__ bind(&C);
- __ teq(r1, Operand(0, RelocInfo::NONE32));
+ __ teq(r1, Operand::Zero());
__ b(ne, &L);
__ mov(pc, Operand(lr));
@@ -134,7 +134,7 @@ TEST(2) {
__ sub(r1, r1, Operand(1));
__ bind(&C);
- __ teq(r1, Operand(0, RelocInfo::NONE32));
+ __ teq(r1, Operand::Zero());
__ b(ne, &L);
__ mov(pc, Operand(lr));
@@ -979,13 +979,13 @@ TEST(11) {
// Test corner cases.
__ mov(r1, Operand(0xffffffff));
- __ mov(r2, Operand(0));
+ __ mov(r2, Operand::Zero());
__ mov(r3, Operand(r1, ASR, 1), SetCC); // Set the carry.
__ adc(r3, r1, Operand(r2));
__ str(r3, MemOperand(r0, OFFSET_OF(I, c)));
__ mov(r1, Operand(0xffffffff));
- __ mov(r2, Operand(0));
+ __ mov(r2, Operand::Zero());
__ mov(r3, Operand(r2, ASR, 1), SetCC); // Unset the carry.
__ adc(r3, r1, Operand(r2));
__ str(r3, MemOperand(r0, OFFSET_OF(I, d)));
« no previous file with comments | « src/arm/stub-cache-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698