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

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

Issue 7786001: Fixed issue v8:1644 (bug in the chaining of fixup position) (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 3 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 | « src/mips/assembler-mips.cc ('k') | test/cctest/test-assembler-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 992 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 F3 f = FUNCTION_CAST<F3>(Code::cast(code)->entry()); 1003 F3 f = FUNCTION_CAST<F3>(Code::cast(code)->entry());
1004 Object* dummy = CALL_GENERATED_CODE(f, &i, 0, 0, 0, 0); 1004 Object* dummy = CALL_GENERATED_CODE(f, &i, 0, 0, 0, 0);
1005 USE(dummy); 1005 USE(dummy);
1006 1006
1007 CHECK_EQ(0xabcd0001, i.a); 1007 CHECK_EQ(0xabcd0001, i.a);
1008 CHECK_EQ(static_cast<int32_t>(0xabcd0000) >> 1, i.b); 1008 CHECK_EQ(static_cast<int32_t>(0xabcd0000) >> 1, i.b);
1009 CHECK_EQ(0x00000000, i.c); 1009 CHECK_EQ(0x00000000, i.c);
1010 CHECK_EQ(0xffffffff, i.d); 1010 CHECK_EQ(0xffffffff, i.d);
1011 } 1011 }
1012 1012
1013
1014 TEST(12) {
1015 // Test chaining of label usages within instructions (issue 1644).
1016 InitializeVM();
1017 v8::HandleScope scope;
1018 Assembler assm(Isolate::Current(), NULL, 0);
1019
1020 Label target;
1021 __ b(eq, &target);
1022 __ b(ne, &target);
1023 __ bind(&target);
1024 __ nop();
1025 }
1026
1013 #undef __ 1027 #undef __
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.cc ('k') | test/cctest/test-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698