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

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

Issue 1232803003: Revert of Update V8 DEPS. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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-disasm-mips.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 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 V8_Fatal(__FILE__, __LINE__, "MIPS Disassembler tests failed.\n"); \ 91 V8_Fatal(__FILE__, __LINE__, "MIPS Disassembler tests failed.\n"); \
92 } 92 }
93 93
94 94
95 #define COMPARE_PC_REL_COMPACT(asm_, compare_string, offset) \ 95 #define COMPARE_PC_REL_COMPACT(asm_, compare_string, offset) \
96 { \ 96 { \
97 int pc_offset = assm.pc_offset(); \ 97 int pc_offset = assm.pc_offset(); \
98 byte *progcounter = &buffer[pc_offset]; \ 98 byte *progcounter = &buffer[pc_offset]; \
99 char str_with_address[100]; \ 99 char str_with_address[100]; \
100 snprintf(str_with_address, sizeof(str_with_address), "%s -> %p", \ 100 snprintf(str_with_address, sizeof(str_with_address), "%s -> %p", \
101 compare_string, progcounter + 4 + (offset * 4)); \ 101 compare_string, progcounter + 4 + (offset << 2)); \
102 assm.asm_; \ 102 assm.asm_; \
103 if (!DisassembleAndCompare(progcounter, str_with_address)) failure = true; \ 103 if (!DisassembleAndCompare(progcounter, str_with_address)) failure = true; \
104 } 104 }
105 105
106 106
107 #define COMPARE_PC_REL(asm_, compare_string, offset) \ 107 #define COMPARE_PC_REL(asm_, compare_string, offset) \
108 { \ 108 { \
109 int pc_offset = assm.pc_offset(); \ 109 int pc_offset = assm.pc_offset(); \
110 byte *progcounter = &buffer[pc_offset]; \ 110 byte *progcounter = &buffer[pc_offset]; \
111 char str_with_address[100]; \ 111 char str_with_address[100]; \
112 snprintf(str_with_address, sizeof(str_with_address), "%s -> %p", \ 112 snprintf(str_with_address, sizeof(str_with_address), "%s -> %p", \
113 compare_string, progcounter + (offset * 4)); \ 113 compare_string, progcounter + (offset << 2)); \
114 assm.asm_; \ 114 assm.asm_; \
115 if (!DisassembleAndCompare(progcounter, str_with_address)) failure = true; \ 115 if (!DisassembleAndCompare(progcounter, str_with_address)) failure = true; \
116 } 116 }
117 117
118 118
119 #define COMPARE_PC_JUMP(asm_, compare_string, target) \ 119 #define COMPARE_PC_JUMP(asm_, compare_string, target) \
120 { \ 120 { \
121 int pc_offset = assm.pc_offset(); \ 121 int pc_offset = assm.pc_offset(); \
122 byte *progcounter = &buffer[pc_offset]; \ 122 byte *progcounter = &buffer[pc_offset]; \
123 char str_with_address[100]; \ 123 char str_with_address[100]; \
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 COMPARE(cvt_s_w(f22, f24), "4680c5a0 cvt.s.w f22, f24"); 1217 COMPARE(cvt_s_w(f22, f24), "4680c5a0 cvt.s.w f22, f24");
1218 if (kArchVariant == kMips64r6 || kArchVariant == kMips64r2) { 1218 if (kArchVariant == kMips64r6 || kArchVariant == kMips64r2) {
1219 COMPARE(cvt_s_l(f22, f24), "46a0c5a0 cvt.s.l f22, f24"); 1219 COMPARE(cvt_s_l(f22, f24), "46a0c5a0 cvt.s.l f22, f24");
1220 } 1220 }
1221 1221
1222 COMPARE(cvt_s_d(f22, f24), "4620c5a0 cvt.s.d f22, f24"); 1222 COMPARE(cvt_s_d(f22, f24), "4620c5a0 cvt.s.d f22, f24");
1223 COMPARE(cvt_s_w(f22, f24), "4680c5a0 cvt.s.w f22, f24"); 1223 COMPARE(cvt_s_w(f22, f24), "4680c5a0 cvt.s.w f22, f24");
1224 1224
1225 VERIFY_RUN(); 1225 VERIFY_RUN();
1226 } 1226 }
OLDNEW
« no previous file with comments | « test/cctest/test-disasm-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698