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

Side by Side Diff: test/cctest/test-assembler-a64.cc

Issue 141593005: A64: Implement Smi support in MathAbs (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/a64/stub-cache-a64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 9146 matching lines...) Expand 10 before | Expand all | Expand 10 after
9157 9157
9158 9158
9159 static void DoSmiAbsTest(int32_t value, bool must_fail = false) { 9159 static void DoSmiAbsTest(int32_t value, bool must_fail = false) {
9160 SETUP(); 9160 SETUP();
9161 9161
9162 START(); 9162 START();
9163 Label end, slow; 9163 Label end, slow;
9164 __ Mov(x2, 0xc001c0de); 9164 __ Mov(x2, 0xc001c0de);
9165 __ Mov(x1, value); 9165 __ Mov(x1, value);
9166 __ SmiTag(x1); 9166 __ SmiTag(x1);
9167 __ SmiAbs(x1, x0, &slow); 9167 __ SmiAbs(x1, &slow);
9168 __ SmiUntag(x1); 9168 __ SmiUntag(x1);
9169 __ B(&end); 9169 __ B(&end);
9170 9170
9171 __ Bind(&slow); 9171 __ Bind(&slow);
9172 __ Mov(x2, 0xbad); 9172 __ Mov(x2, 0xbad);
9173 9173
9174 __ Bind(&end); 9174 __ Bind(&end);
9175 END(); 9175 END();
9176 9176
9177 RUN(); 9177 RUN();
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
9564 AbsHelperX(kXMinInt); 9564 AbsHelperX(kXMinInt);
9565 AbsHelperX(kXMaxInt); 9565 AbsHelperX(kXMaxInt);
9566 9566
9567 AbsHelperW(0); 9567 AbsHelperW(0);
9568 AbsHelperW(42); 9568 AbsHelperW(42);
9569 AbsHelperW(-42); 9569 AbsHelperW(-42);
9570 AbsHelperW(kWMinInt); 9570 AbsHelperW(kWMinInt);
9571 AbsHelperW(kWMaxInt); 9571 AbsHelperW(kWMaxInt);
9572 } 9572 }
9573 9573
OLDNEW
« no previous file with comments | « src/a64/stub-cache-a64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698