OLD | NEW |
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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 267 |
268 COMPARE(srav(a0, a1, a2), | 268 COMPARE(srav(a0, a1, a2), |
269 "00c52007 srav a0, a1, a2"); | 269 "00c52007 srav a0, a1, a2"); |
270 COMPARE(srav(s0, s1, s2), | 270 COMPARE(srav(s0, s1, s2), |
271 "02518007 srav s0, s1, s2"); | 271 "02518007 srav s0, s1, s2"); |
272 COMPARE(srav(t2, t3, t4), | 272 COMPARE(srav(t2, t3, t4), |
273 "018b5007 srav t2, t3, t4"); | 273 "018b5007 srav t2, t3, t4"); |
274 COMPARE(srav(v0, v1, fp), | 274 COMPARE(srav(v0, v1, fp), |
275 "03c31007 srav v0, v1, fp"); | 275 "03c31007 srav v0, v1, fp"); |
276 | 276 |
277 COMPARE(rotr(a0, a1, 0), | 277 if (mips32r2) { |
278 "00252002 rotr a0, a1, 0"); | 278 COMPARE(rotr(a0, a1, 0), |
279 COMPARE(rotr(s0, s1, 8), | 279 "00252002 rotr a0, a1, 0"); |
280 "00318202 rotr s0, s1, 8"); | 280 COMPARE(rotr(s0, s1, 8), |
281 COMPARE(rotr(t2, t3, 24), | 281 "00318202 rotr s0, s1, 8"); |
282 "002b5602 rotr t2, t3, 24"); | 282 COMPARE(rotr(t2, t3, 24), |
283 COMPARE(rotr(v0, v1, 31), | 283 "002b5602 rotr t2, t3, 24"); |
284 "002317c2 rotr v0, v1, 31"); | 284 COMPARE(rotr(v0, v1, 31), |
| 285 "002317c2 rotr v0, v1, 31"); |
285 | 286 |
286 COMPARE(rotrv(a0, a1, a2), | 287 COMPARE(rotrv(a0, a1, a2), |
287 "00c52046 rotrv a0, a1, a2"); | 288 "00c52046 rotrv a0, a1, a2"); |
288 COMPARE(rotrv(s0, s1, s2), | 289 COMPARE(rotrv(s0, s1, s2), |
289 "02518046 rotrv s0, s1, s2"); | 290 "02518046 rotrv s0, s1, s2"); |
290 COMPARE(rotrv(t2, t3, t4), | 291 COMPARE(rotrv(t2, t3, t4), |
291 "018b5046 rotrv t2, t3, t4"); | 292 "018b5046 rotrv t2, t3, t4"); |
292 COMPARE(rotrv(v0, v1, fp), | 293 COMPARE(rotrv(v0, v1, fp), |
293 "03c31046 rotrv v0, v1, fp"); | 294 "03c31046 rotrv v0, v1, fp"); |
| 295 } |
294 | 296 |
295 COMPARE(break_(0), | 297 COMPARE(break_(0), |
296 "0000000d break, code: 0x00000 (0)"); | 298 "0000000d break, code: 0x00000 (0)"); |
297 COMPARE(break_(261120), | 299 COMPARE(break_(261120), |
298 "00ff000d break, code: 0x3fc00 (261120)"); | 300 "00ff000d break, code: 0x3fc00 (261120)"); |
299 COMPARE(break_(1047552), | 301 COMPARE(break_(1047552), |
300 "03ff000d break, code: 0xffc00 (1047552)"); | 302 "03ff000d break, code: 0xffc00 (1047552)"); |
301 | 303 |
302 COMPARE(tge(a0, a1, 0), | 304 COMPARE(tge(a0, a1, 0), |
303 "00850030 tge a0, a1, code: 0x000"); | 305 "00850030 tge a0, a1, code: 0x000"); |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 "01745001 movf t2, t3, 5"); | 410 "01745001 movf t2, t3, 5"); |
409 COMPARE(movf(v0, v1, 6), | 411 COMPARE(movf(v0, v1, 6), |
410 "00781001 movf v0, v1, 6"); | 412 "00781001 movf v0, v1, 6"); |
411 | 413 |
412 COMPARE(clz(a0, a1), | 414 COMPARE(clz(a0, a1), |
413 "70a42020 clz a0, a1"); | 415 "70a42020 clz a0, a1"); |
414 COMPARE(clz(s6, s7), | 416 COMPARE(clz(s6, s7), |
415 "72f6b020 clz s6, s7"); | 417 "72f6b020 clz s6, s7"); |
416 COMPARE(clz(v0, v1), | 418 COMPARE(clz(v0, v1), |
417 "70621020 clz v0, v1"); | 419 "70621020 clz v0, v1"); |
418 COMPARE(ins_(a0, a1, 31, 1), | 420 |
419 "7ca4ffc4 ins a0, a1, 31, 1"); | 421 if (mips32r2) { |
420 COMPARE(ins_(s6, s7, 30, 2), | 422 COMPARE(ins_(a0, a1, 31, 1), |
421 "7ef6ff84 ins s6, s7, 30, 2"); | 423 "7ca4ffc4 ins a0, a1, 31, 1"); |
422 COMPARE(ins_(v0, v1, 0, 32), | 424 COMPARE(ins_(s6, s7, 30, 2), |
423 "7c62f804 ins v0, v1, 0, 32"); | 425 "7ef6ff84 ins s6, s7, 30, 2"); |
424 COMPARE(ext_(a0, a1, 31, 1), | 426 COMPARE(ins_(v0, v1, 0, 32), |
425 "7ca407c0 ext a0, a1, 31, 1"); | 427 "7c62f804 ins v0, v1, 0, 32"); |
426 COMPARE(ext_(s6, s7, 30, 2), | 428 COMPARE(ext_(a0, a1, 31, 1), |
427 "7ef60f80 ext s6, s7, 30, 2"); | 429 "7ca407c0 ext a0, a1, 31, 1"); |
428 COMPARE(ext_(v0, v1, 0, 32), | 430 COMPARE(ext_(s6, s7, 30, 2), |
429 "7c62f800 ext v0, v1, 0, 32"); | 431 "7ef60f80 ext s6, s7, 30, 2"); |
| 432 COMPARE(ext_(v0, v1, 0, 32), |
| 433 "7c62f800 ext v0, v1, 0, 32"); |
| 434 } |
430 | 435 |
431 VERIFY_RUN(); | 436 VERIFY_RUN(); |
432 } | 437 } |
OLD | NEW |