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

Side by Side Diff: test/cctest/test-macro-assembler-mips.cc

Issue 2591063003: MIPS: Fix improper use of odd FP reg on mips32r6 (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « src/mips/assembler-mips.h ('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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 return reinterpret_cast<RET_TYPE>( 518 return reinterpret_cast<RET_TYPE>(
519 CALL_GENERATED_CODE(isolate, f, x, 0, 0, 0, 0)); 519 CALL_GENERATED_CODE(isolate, f, x, 0, 0, 0, 0));
520 } 520 }
521 521
522 TEST(cvt_s_w_Trunc_uw_s) { 522 TEST(cvt_s_w_Trunc_uw_s) {
523 CcTest::InitializeVM(); 523 CcTest::InitializeVM();
524 FOR_UINT32_INPUTS(i, cvt_trunc_uint32_test_values) { 524 FOR_UINT32_INPUTS(i, cvt_trunc_uint32_test_values) {
525 uint32_t input = *i; 525 uint32_t input = *i;
526 auto fn = [](MacroAssembler* masm) { 526 auto fn = [](MacroAssembler* masm) {
527 __ cvt_s_w(f0, f4); 527 __ cvt_s_w(f0, f4);
528 __ Trunc_uw_s(f2, f0, f1); 528 __ Trunc_uw_s(f2, f0, f6);
529 }; 529 };
530 CHECK_EQ(static_cast<float>(input), run_Cvt<uint32_t>(input, fn)); 530 CHECK_EQ(static_cast<float>(input), run_Cvt<uint32_t>(input, fn));
531 } 531 }
532 } 532 }
533 533
534 TEST(cvt_d_w_Trunc_w_d) { 534 TEST(cvt_d_w_Trunc_w_d) {
535 CcTest::InitializeVM(); 535 CcTest::InitializeVM();
536 FOR_INT32_INPUTS(i, cvt_trunc_int32_test_values) { 536 FOR_INT32_INPUTS(i, cvt_trunc_int32_test_values) {
537 int32_t input = *i; 537 int32_t input = *i;
538 auto fn = [](MacroAssembler* masm) { 538 auto fn = [](MacroAssembler* masm) {
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 1352
1353 auto fn_2 = [](MacroAssembler* masm, uint32_t imm) { 1353 auto fn_2 = [](MacroAssembler* masm, uint32_t imm) {
1354 __ Sltu(v0, a0, a1); 1354 __ Sltu(v0, a0, a1);
1355 }; 1355 };
1356 CHECK_EQ(rs < rd, run_Sltu(rs, rd, fn_2)); 1356 CHECK_EQ(rs < rd, run_Sltu(rs, rd, fn_2));
1357 } 1357 }
1358 } 1358 }
1359 } 1359 }
1360 1360
1361 #undef __ 1361 #undef __
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698