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

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

Issue 17099010: MIPS: Fix cctest/test-assembler-mips on MIPS32R1 architecture. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 t.i = 2.75; 330 t.i = 2.75;
331 Object* dummy = CALL_GENERATED_CODE(f, &t, 0, 0, 0, 0); 331 Object* dummy = CALL_GENERATED_CODE(f, &t, 0, 0, 0, 0);
332 USE(dummy); 332 USE(dummy);
333 CHECK_EQ(1.5e14, t.a); 333 CHECK_EQ(1.5e14, t.a);
334 CHECK_EQ(1.5e14, t.b); 334 CHECK_EQ(1.5e14, t.b);
335 CHECK_EQ(1.50275e14, t.c); 335 CHECK_EQ(1.50275e14, t.c);
336 CHECK_EQ(1.50550e14, t.d); 336 CHECK_EQ(1.50550e14, t.d);
337 CHECK_EQ(1.8066e16, t.e); 337 CHECK_EQ(1.8066e16, t.e);
338 CHECK_EQ(120.44, t.f); 338 CHECK_EQ(120.44, t.f);
339 CHECK_EQ(10.97451593465515908537, t.g); 339 CHECK_EQ(10.97451593465515908537, t.g);
340 CHECK_EQ(6.875, t.h); 340 if (kArchVariant == kMips32r2) {
341 CHECK_EQ(6.875, t.h);
342 }
341 } 343 }
342 344
343 345
344 TEST(MIPS4) { 346 TEST(MIPS4) {
345 // Test moves between floating point and integer registers. 347 // Test moves between floating point and integer registers.
346 CcTest::InitializeVM(); 348 CcTest::InitializeVM();
347 Isolate* isolate = Isolate::Current(); 349 Isolate* isolate = Isolate::Current();
348 HandleScope scope(isolate); 350 HandleScope scope(isolate);
349 351
350 typedef struct { 352 typedef struct {
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
1263 Label target; 1265 Label target;
1264 __ beq(v0, v1, &target); 1266 __ beq(v0, v1, &target);
1265 __ nop(); 1267 __ nop();
1266 __ bne(v0, v1, &target); 1268 __ bne(v0, v1, &target);
1267 __ nop(); 1269 __ nop();
1268 __ bind(&target); 1270 __ bind(&target);
1269 __ nop(); 1271 __ nop();
1270 } 1272 }
1271 1273
1272 #undef __ 1274 #undef __
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698