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

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

Issue 194753002: A64: Fix Fmov with signalling NaN literals. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | « test/cctest/test-assembler-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 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 CLEANUP(); 1266 CLEANUP();
1267 } 1267 }
1268 1268
1269 #if 0 // TODO(all): enable. 1269 #if 0 // TODO(all): enable.
1270 TEST_(load_literal) { 1270 TEST_(load_literal) {
1271 SET_UP(); 1271 SET_UP();
1272 1272
1273 COMPARE_PREFIX(ldr(x10, 0x1234567890abcdefUL), "ldr x10, pc+8"); 1273 COMPARE_PREFIX(ldr(x10, 0x1234567890abcdefUL), "ldr x10, pc+8");
1274 COMPARE_PREFIX(ldr(w20, 0xfedcba09), "ldr w20, pc+8"); 1274 COMPARE_PREFIX(ldr(w20, 0xfedcba09), "ldr w20, pc+8");
1275 COMPARE_PREFIX(ldr(d11, 1.234), "ldr d11, pc+8"); 1275 COMPARE_PREFIX(ldr(d11, 1.234), "ldr d11, pc+8");
1276 COMPARE_PREFIX(ldr(s22, 2.5), "ldr s22, pc+8"); 1276 COMPARE_PREFIX(ldr(s22, 2.5f), "ldr s22, pc+8");
1277 1277
1278 CLEANUP(); 1278 CLEANUP();
1279 } 1279 }
1280 #endif 1280 #endif
1281 1281
1282 TEST_(cond_select) { 1282 TEST_(cond_select) {
1283 SET_UP(); 1283 SET_UP();
1284 1284
1285 COMPARE(csel(w0, w1, w2, eq), "csel w0, w1, w2, eq"); 1285 COMPARE(csel(w0, w1, w2, eq), "csel w0, w1, w2, eq");
1286 COMPARE(csel(x3, x4, x5, ne), "csel x3, x4, x5, ne"); 1286 COMPARE(csel(x3, x4, x5, ne), "csel x3, x4, x5, ne");
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
1354 COMPARE(Ccmn(w2, -1, CVFlag, gt), "ccmp w2, #1, #nzCV, gt"); 1354 COMPARE(Ccmn(w2, -1, CVFlag, gt), "ccmp w2, #1, #nzCV, gt");
1355 COMPARE(Ccmn(x3, -31, ZCVFlag, ls), "ccmp x3, #31, #nZCV, ls"); 1355 COMPARE(Ccmn(x3, -31, ZCVFlag, ls), "ccmp x3, #31, #nZCV, ls");
1356 1356
1357 CLEANUP(); 1357 CLEANUP();
1358 } 1358 }
1359 1359
1360 1360
1361 TEST_(fmov_imm) { 1361 TEST_(fmov_imm) {
1362 SET_UP(); 1362 SET_UP();
1363 1363
1364 COMPARE(fmov(s0, 1.0), "fmov s0, #0x70 (1.0000)"); 1364 COMPARE(fmov(s0, 1.0f), "fmov s0, #0x70 (1.0000)");
1365 COMPARE(fmov(s31, -13.0), "fmov s31, #0xaa (-13.0000)"); 1365 COMPARE(fmov(s31, -13.0f), "fmov s31, #0xaa (-13.0000)");
1366 COMPARE(fmov(d1, 1.0), "fmov d1, #0x70 (1.0000)"); 1366 COMPARE(fmov(d1, 1.0), "fmov d1, #0x70 (1.0000)");
1367 COMPARE(fmov(d29, -13.0), "fmov d29, #0xaa (-13.0000)"); 1367 COMPARE(fmov(d29, -13.0), "fmov d29, #0xaa (-13.0000)");
1368 1368
1369 CLEANUP(); 1369 CLEANUP();
1370 } 1370 }
1371 1371
1372 1372
1373 TEST_(fmov_reg) { 1373 TEST_(fmov_reg) {
1374 SET_UP(); 1374 SET_UP();
1375 1375
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
1754 COMPARE(Dsb(FullSystem, BarrierOther), "dsb sy (0b1100)"); 1754 COMPARE(Dsb(FullSystem, BarrierOther), "dsb sy (0b1100)");
1755 COMPARE(Dsb(InnerShareable, BarrierOther), "dsb sy (0b1000)"); 1755 COMPARE(Dsb(InnerShareable, BarrierOther), "dsb sy (0b1000)");
1756 COMPARE(Dsb(NonShareable, BarrierOther), "dsb sy (0b0100)"); 1756 COMPARE(Dsb(NonShareable, BarrierOther), "dsb sy (0b0100)");
1757 COMPARE(Dsb(OuterShareable, BarrierOther), "dsb sy (0b0000)"); 1757 COMPARE(Dsb(OuterShareable, BarrierOther), "dsb sy (0b0000)");
1758 1758
1759 // ISB 1759 // ISB
1760 COMPARE(Isb(), "isb"); 1760 COMPARE(Isb(), "isb");
1761 1761
1762 CLEANUP(); 1762 CLEANUP();
1763 } 1763 }
OLDNEW
« no previous file with comments | « test/cctest/test-assembler-a64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698