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

Side by Side Diff: test/cctest/test-disasm-arm64.cc

Issue 2922983002: [arm64] Fix assertion in IsImmLLiteral and enable literal pool tests. (Closed)
Patch Set: Address comments. Created 3 years, 6 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 | « test/cctest/test-assembler-arm64.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 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after
1476 COMPARE(ldaxrb(wzr, csp), "ldaxrb wzr, [csp]"); 1476 COMPARE(ldaxrb(wzr, csp), "ldaxrb wzr, [csp]");
1477 COMPARE(ldaxrh(wzr, csp), "ldaxrh wzr, [csp]"); 1477 COMPARE(ldaxrh(wzr, csp), "ldaxrh wzr, [csp]");
1478 COMPARE(ldaxr(wzr, csp), "ldaxr wzr, [csp]"); 1478 COMPARE(ldaxr(wzr, csp), "ldaxr wzr, [csp]");
1479 COMPARE(stlxrb(wzr, wzr, csp), "stlxrb wzr, wzr, [csp]"); 1479 COMPARE(stlxrb(wzr, wzr, csp), "stlxrb wzr, wzr, [csp]");
1480 COMPARE(stlxrh(wzr, wzr, csp), "stlxrh wzr, wzr, [csp]"); 1480 COMPARE(stlxrh(wzr, wzr, csp), "stlxrh wzr, wzr, [csp]");
1481 COMPARE(stlxr(wzr, wzr, csp), "stlxr wzr, wzr, [csp]"); 1481 COMPARE(stlxr(wzr, wzr, csp), "stlxr wzr, wzr, [csp]");
1482 1482
1483 CLEANUP(); 1483 CLEANUP();
1484 } 1484 }
1485 1485
1486 #if 0 // TODO(all): enable.
1487 TEST_(load_literal) { 1486 TEST_(load_literal) {
1488 SET_UP_ASM(); 1487 SET_UP_ASM();
1489 1488
1490 COMPARE_PREFIX(ldr(x10, 0x1234567890abcdefUL), "ldr x10, pc+8"); 1489 COMPARE_PREFIX(ldr_pcrel(x10, 0), "ldr x10, pc+0");
1491 COMPARE_PREFIX(ldr(w20, 0xfedcba09), "ldr w20, pc+8"); 1490 COMPARE_PREFIX(ldr_pcrel(x10, 1), "ldr x10, pc+4");
1492 COMPARE_PREFIX(ldr(d11, 1.234), "ldr d11, pc+8"); 1491 COMPARE_PREFIX(ldr_pcrel(d11, 0), "ldr d11, pc+0");
1493 COMPARE_PREFIX(ldr(s22, 2.5f), "ldr s22, pc+8"); 1492 COMPARE_PREFIX(ldr_pcrel(d11, 1), "ldr d11, pc+4");
1493
1494 int max_offset = (kMaxLoadLiteralRange >> kLoadLiteralScaleLog2) - 1;
1495 COMPARE_PREFIX(ldr_pcrel(x0, max_offset), "ldr x0, pc+1048572");
1496 COMPARE_PREFIX(ldr_pcrel(d0, max_offset), "ldr d0, pc+1048572");
1494 1497
1495 CLEANUP(); 1498 CLEANUP();
1496 } 1499 }
1497 #endif
1498 1500
1499 TEST_(cond_select) { 1501 TEST_(cond_select) {
1500 SET_UP_ASM(); 1502 SET_UP_ASM();
1501 1503
1502 COMPARE(csel(w0, w1, w2, eq), "csel w0, w1, w2, eq"); 1504 COMPARE(csel(w0, w1, w2, eq), "csel w0, w1, w2, eq");
1503 COMPARE(csel(x3, x4, x5, ne), "csel x3, x4, x5, ne"); 1505 COMPARE(csel(x3, x4, x5, ne), "csel x3, x4, x5, ne");
1504 COMPARE(csinc(w6, w7, w8, hs), "csinc w6, w7, w8, hs"); 1506 COMPARE(csinc(w6, w7, w8, hs), "csinc w6, w7, w8, hs");
1505 COMPARE(csinc(x9, x10, x11, lo), "csinc x9, x10, x11, lo"); 1507 COMPARE(csinc(x9, x10, x11, lo), "csinc x9, x10, x11, lo");
1506 COMPARE(csinv(w12, w13, w14, mi), "csinv w12, w13, w14, mi"); 1508 COMPARE(csinv(w12, w13, w14, mi), "csinv w12, w13, w14, mi");
1507 COMPARE(csinv(x15, x16, x17, pl), "csinv x15, x16, x17, pl"); 1509 COMPARE(csinv(x15, x16, x17, pl), "csinv x15, x16, x17, pl");
(...skipping 3422 matching lines...) Expand 10 before | Expand all | Expand 10 after
4930 COMPARE(Fcvtzs(d8, d6, 34), "fcvtzs d8, d6, #34"); 4932 COMPARE(Fcvtzs(d8, d6, 34), "fcvtzs d8, d6, #34");
4931 4933
4932 COMPARE(Fcvtzu(v5.V2S(), v3.V2S(), 11), "fcvtzu v5.2s, v3.2s, #11"); 4934 COMPARE(Fcvtzu(v5.V2S(), v3.V2S(), 11), "fcvtzu v5.2s, v3.2s, #11");
4933 COMPARE(Fcvtzu(v6.V4S(), v4.V4S(), 12), "fcvtzu v6.4s, v4.4s, #12"); 4935 COMPARE(Fcvtzu(v6.V4S(), v4.V4S(), 12), "fcvtzu v6.4s, v4.4s, #12");
4934 COMPARE(Fcvtzu(v7.V2D(), v5.V2D(), 33), "fcvtzu v7.2d, v5.2d, #33"); 4936 COMPARE(Fcvtzu(v7.V2D(), v5.V2D(), 33), "fcvtzu v7.2d, v5.2d, #33");
4935 COMPARE(Fcvtzu(s8, s6, 13), "fcvtzu s8, s6, #13"); 4937 COMPARE(Fcvtzu(s8, s6, 13), "fcvtzu s8, s6, #13");
4936 COMPARE(Fcvtzu(d8, d6, 34), "fcvtzu d8, d6, #34"); 4938 COMPARE(Fcvtzu(d8, d6, 34), "fcvtzu d8, d6, #34");
4937 4939
4938 CLEANUP(); 4940 CLEANUP();
4939 } 4941 }
OLDNEW
« no previous file with comments | « test/cctest/test-assembler-arm64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698