OLD | NEW |
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 "e2244801 eor r4, r4, #65536"); | 282 "e2244801 eor r4, r4, #65536"); |
283 COMPARE(eor(r4, r3, Operand(0x00100000), SetCC), | 283 COMPARE(eor(r4, r3, Operand(0x00100000), SetCC), |
284 "e2334601 eors r4, r3, #1048576"); | 284 "e2334601 eors r4, r3, #1048576"); |
285 COMPARE(eor(r4, r2, Operand(0x01000000), LeaveCC, cs), | 285 COMPARE(eor(r4, r2, Operand(0x01000000), LeaveCC, cs), |
286 "22224401 eorcs r4, r2, #16777216"); | 286 "22224401 eorcs r4, r2, #16777216"); |
287 COMPARE(eor(r4, r1, Operand(0x10000000), SetCC, cc), | 287 COMPARE(eor(r4, r1, Operand(0x10000000), SetCC, cc), |
288 "32314201 eorccs r4, r1, #268435456"); | 288 "32314201 eorccs r4, r1, #268435456"); |
289 | 289 |
290 VERIFY_RUN(); | 290 VERIFY_RUN(); |
291 } | 291 } |
| 292 |
| 293 |
| 294 TEST(Type3) { |
| 295 SETUP(); |
| 296 |
| 297 if (CpuFeatures::IsSupported(ARMv7)) { |
| 298 COMPARE(ubfx(r0, r1, 5, 10), |
| 299 "e7e902d1 ubfx r0, r1, #5, #10"); |
| 300 COMPARE(ubfx(r1, r0, 5, 10), |
| 301 "e7e912d0 ubfx r1, r0, #5, #10"); |
| 302 COMPARE(ubfx(r0, r1, 31, 1), |
| 303 "e7e00fd1 ubfx r0, r1, #31, #1"); |
| 304 COMPARE(ubfx(r1, r0, 31, 1), |
| 305 "e7e01fd0 ubfx r1, r0, #31, #1"); |
| 306 |
| 307 COMPARE(sbfx(r0, r1, 5, 10), |
| 308 "e7a902d1 sbfx r0, r1, #5, #10"); |
| 309 COMPARE(sbfx(r1, r0, 5, 10), |
| 310 "e7a912d0 sbfx r1, r0, #5, #10"); |
| 311 COMPARE(sbfx(r0, r1, 31, 1), |
| 312 "e7a00fd1 sbfx r0, r1, #31, #1"); |
| 313 COMPARE(sbfx(r1, r0, 31, 1), |
| 314 "e7a01fd0 sbfx r1, r0, #31, #1"); |
| 315 |
| 316 COMPARE(bfc(r0, 5, 10), |
| 317 "e7ce029f bfc r0, #5, #10"); |
| 318 COMPARE(bfc(r1, 5, 10), |
| 319 "e7ce129f bfc r1, #5, #10"); |
| 320 COMPARE(bfc(r0, 31, 1), |
| 321 "e7df0f9f bfc r0, #31, #1"); |
| 322 COMPARE(bfc(r1, 31, 1), |
| 323 "e7df1f9f bfc r1, #31, #1"); |
| 324 |
| 325 COMPARE(bfi(r0, r1, 5, 10), |
| 326 "e7ce0291 bfi r0, r1, #5, #10"); |
| 327 COMPARE(bfi(r1, r0, 5, 10), |
| 328 "e7ce1290 bfi r1, r0, #5, #10"); |
| 329 COMPARE(bfi(r0, r1, 31, 1), |
| 330 "e7df0f91 bfi r0, r1, #31, #1"); |
| 331 COMPARE(bfi(r1, r0, 31, 1), |
| 332 "e7df1f90 bfi r1, r0, #31, #1"); |
| 333 } |
| 334 |
| 335 VERIFY_RUN(); |
| 336 } |
| 337 |
OLD | NEW |