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

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

Issue 2605863002: [turbofan] Improve codegen for 8- and 16-bit memory comparisons on Intel platforms (Closed)
Patch Set: Fix assert Created 3 years, 11 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/x64/assembler-x64.cc ('k') | test/cctest/test-code-stub-assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-assembler-x64.cc
diff --git a/test/cctest/test-assembler-x64.cc b/test/cctest/test-assembler-x64.cc
index b11b0d39374bdb51a4650bb69c061da055084792..55186571621f66d92b66418d27afcb54f8739377 100644
--- a/test/cctest/test-assembler-x64.cc
+++ b/test/cctest/test-assembler-x64.cc
@@ -201,7 +201,7 @@ TEST(AssemblerX64ImulOperation) {
CHECK_EQ(-1, result);
}
-TEST(AssemblerX64testbwOperation) {
+TEST(AssemblerX64testbwqOperation) {
CcTest::InitializeVM();
v8::HandleScope scope(CcTest::isolate());
// Allocate an executable page of memory.
@@ -338,6 +338,12 @@ TEST(AssemblerX64testbwOperation) {
__ testw(r11, r12);
__ j(zero, &bad);
+ // Test sign-extended imediate tests
+ __ movq(r11, Immediate(2));
+ __ shlq(r11, Immediate(32));
+ __ testq(r11, Immediate(-1));
+ __ j(zero, &bad);
+
// All tests passed
__ movq(rax, Immediate(1));
__ jmp(&done);
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | test/cctest/test-code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698