OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 3344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3355 | 3355 |
3356 | 3356 |
3357 void Assembler::vmrs(Register dst, Condition cond) { | 3357 void Assembler::vmrs(Register dst, Condition cond) { |
3358 // Instruction details available in ARM DDI 0406A, A8-652. | 3358 // Instruction details available in ARM DDI 0406A, A8-652. |
3359 // cond(31-28) | 1110 (27-24) | 1111(23-20)| 0001 (19-16) | | 3359 // cond(31-28) | 1110 (27-24) | 1111(23-20)| 0001 (19-16) | |
3360 // Rt(15-12) | 1010 (11-8) | 0(7) | 00 (6-5) | 1(4) | 0000(3-0) | 3360 // Rt(15-12) | 1010 (11-8) | 0(7) | 00 (6-5) | 1(4) | 0000(3-0) |
3361 emit(cond | 0xE * B24 | 0xF * B20 | B16 | dst.code() * B12 | 0xA * B8 | B4); | 3361 emit(cond | 0xE * B24 | 0xF * B20 | B16 | dst.code() * B12 | 0xA * B8 | B4); |
3362 } | 3362 } |
3363 | 3363 |
3364 | 3364 |
| 3365 void Assembler::vrinta(const SwVfpRegister dst, const SwVfpRegister src) { |
| 3366 // cond=kSpecialCondition(31-28) | 11101(27-23)| D(22) | 11(21-20) | |
| 3367 // 10(19-18) | RM=00(17-16) | Vd(15-12) | 101(11-9) | sz=0(8) | 01(7-6) | |
| 3368 // M(5) | 0(4) | Vm(3-0) |
| 3369 DCHECK(CpuFeatures::IsSupported(ARMv8)); |
| 3370 int vd, d; |
| 3371 dst.split_code(&vd, &d); |
| 3372 int vm, m; |
| 3373 src.split_code(&vm, &m); |
| 3374 emit(kSpecialCondition | 0x1D * B23 | d * B22 | 0x3 * B20 | B19 | vd * B12 | |
| 3375 0x5 * B9 | B6 | m * B5 | vm); |
| 3376 } |
| 3377 |
| 3378 |
3365 void Assembler::vrinta(const DwVfpRegister dst, const DwVfpRegister src) { | 3379 void Assembler::vrinta(const DwVfpRegister dst, const DwVfpRegister src) { |
3366 // cond=kSpecialCondition(31-28) | 11101(27-23)| D(22) | 11(21-20) | | 3380 // cond=kSpecialCondition(31-28) | 11101(27-23)| D(22) | 11(21-20) | |
3367 // 10(19-18) | RM=00(17-16) | Vd(15-12) | 101(11-9) | sz=1(8) | 01(7-6) | | 3381 // 10(19-18) | RM=00(17-16) | Vd(15-12) | 101(11-9) | sz=1(8) | 01(7-6) | |
3368 // M(5) | 0(4) | Vm(3-0) | 3382 // M(5) | 0(4) | Vm(3-0) |
3369 DCHECK(CpuFeatures::IsSupported(ARMv8)); | 3383 DCHECK(CpuFeatures::IsSupported(ARMv8)); |
3370 int vd, d; | 3384 int vd, d; |
3371 dst.split_code(&vd, &d); | 3385 dst.split_code(&vd, &d); |
3372 int vm, m; | 3386 int vm, m; |
3373 src.split_code(&vm, &m); | 3387 src.split_code(&vm, &m); |
3374 emit(kSpecialCondition | 0x1D * B23 | d * B22 | 0x3 * B20 | B19 | vd * B12 | | 3388 emit(kSpecialCondition | 0x1D * B23 | d * B22 | 0x3 * B20 | B19 | vd * B12 | |
3375 0x5 * B9 | B8 | B6 | m * B5 | vm); | 3389 0x5 * B9 | B8 | B6 | m * B5 | vm); |
3376 } | 3390 } |
3377 | 3391 |
3378 | 3392 |
| 3393 void Assembler::vrintn(const SwVfpRegister dst, const SwVfpRegister src) { |
| 3394 // cond=kSpecialCondition(31-28) | 11101(27-23)| D(22) | 11(21-20) | |
| 3395 // 10(19-18) | RM=01(17-16) | Vd(15-12) | 101(11-9) | sz=0(8) | 01(7-6) | |
| 3396 // M(5) | 0(4) | Vm(3-0) |
| 3397 DCHECK(CpuFeatures::IsSupported(ARMv8)); |
| 3398 int vd, d; |
| 3399 dst.split_code(&vd, &d); |
| 3400 int vm, m; |
| 3401 src.split_code(&vm, &m); |
| 3402 emit(kSpecialCondition | 0x1D * B23 | d * B22 | 0x3 * B20 | B19 | 0x1 * B16 | |
| 3403 vd * B12 | 0x5 * B9 | B6 | m * B5 | vm); |
| 3404 } |
| 3405 |
| 3406 |
3379 void Assembler::vrintn(const DwVfpRegister dst, const DwVfpRegister src) { | 3407 void Assembler::vrintn(const DwVfpRegister dst, const DwVfpRegister src) { |
3380 // cond=kSpecialCondition(31-28) | 11101(27-23)| D(22) | 11(21-20) | | 3408 // cond=kSpecialCondition(31-28) | 11101(27-23)| D(22) | 11(21-20) | |
3381 // 10(19-18) | RM=01(17-16) | Vd(15-12) | 101(11-9) | sz=1(8) | 01(7-6) | | 3409 // 10(19-18) | RM=01(17-16) | Vd(15-12) | 101(11-9) | sz=1(8) | 01(7-6) | |
3382 // M(5) | 0(4) | Vm(3-0) | 3410 // M(5) | 0(4) | Vm(3-0) |
3383 DCHECK(CpuFeatures::IsSupported(ARMv8)); | 3411 DCHECK(CpuFeatures::IsSupported(ARMv8)); |
3384 int vd, d; | 3412 int vd, d; |
3385 dst.split_code(&vd, &d); | 3413 dst.split_code(&vd, &d); |
3386 int vm, m; | 3414 int vm, m; |
3387 src.split_code(&vm, &m); | 3415 src.split_code(&vm, &m); |
3388 emit(kSpecialCondition | 0x1D * B23 | d * B22 | 0x3 * B20 | B19 | 0x1 * B16 | | 3416 emit(kSpecialCondition | 0x1D * B23 | d * B22 | 0x3 * B20 | B19 | 0x1 * B16 | |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3439 DCHECK(CpuFeatures::IsSupported(ARMv8)); | 3467 DCHECK(CpuFeatures::IsSupported(ARMv8)); |
3440 int vd, d; | 3468 int vd, d; |
3441 dst.split_code(&vd, &d); | 3469 dst.split_code(&vd, &d); |
3442 int vm, m; | 3470 int vm, m; |
3443 src.split_code(&vm, &m); | 3471 src.split_code(&vm, &m); |
3444 emit(kSpecialCondition | 0x1D * B23 | d * B22 | 0x3 * B20 | B19 | 0x3 * B16 | | 3472 emit(kSpecialCondition | 0x1D * B23 | d * B22 | 0x3 * B20 | B19 | 0x3 * B16 | |
3445 vd * B12 | 0x5 * B9 | B8 | B6 | m * B5 | vm); | 3473 vd * B12 | 0x5 * B9 | B8 | B6 | m * B5 | vm); |
3446 } | 3474 } |
3447 | 3475 |
3448 | 3476 |
| 3477 void Assembler::vrintz(const SwVfpRegister dst, const SwVfpRegister src, |
| 3478 const Condition cond) { |
| 3479 // cond(31-28) | 11101(27-23)| D(22) | 11(21-20) | 011(19-17) | 0(16) | |
| 3480 // Vd(15-12) | 101(11-9) | sz=0(8) | op=1(7) | 1(6) | M(5) | 0(4) | Vm(3-0) |
| 3481 DCHECK(CpuFeatures::IsSupported(ARMv8)); |
| 3482 int vd, d; |
| 3483 dst.split_code(&vd, &d); |
| 3484 int vm, m; |
| 3485 src.split_code(&vm, &m); |
| 3486 emit(cond | 0x1D * B23 | d * B22 | 0x3 * B20 | 0x3 * B17 | vd * B12 | |
| 3487 0x5 * B9 | B7 | B6 | m * B5 | vm); |
| 3488 } |
| 3489 |
| 3490 |
3449 void Assembler::vrintz(const DwVfpRegister dst, const DwVfpRegister src, | 3491 void Assembler::vrintz(const DwVfpRegister dst, const DwVfpRegister src, |
3450 const Condition cond) { | 3492 const Condition cond) { |
3451 // cond(31-28) | 11101(27-23)| D(22) | 11(21-20) | 011(19-17) | 0(16) | | 3493 // cond(31-28) | 11101(27-23)| D(22) | 11(21-20) | 011(19-17) | 0(16) | |
3452 // Vd(15-12) | 101(11-9) | sz=1(8) | op=1(7) | 1(6) | M(5) | 0(4) | Vm(3-0) | 3494 // Vd(15-12) | 101(11-9) | sz=1(8) | op=1(7) | 1(6) | M(5) | 0(4) | Vm(3-0) |
3453 DCHECK(CpuFeatures::IsSupported(ARMv8)); | 3495 DCHECK(CpuFeatures::IsSupported(ARMv8)); |
3454 int vd, d; | 3496 int vd, d; |
3455 dst.split_code(&vd, &d); | 3497 dst.split_code(&vd, &d); |
3456 int vm, m; | 3498 int vm, m; |
3457 src.split_code(&vm, &m); | 3499 src.split_code(&vm, &m); |
3458 emit(cond | 0x1D * B23 | d * B22 | 0x3 * B20 | 0x3 * B17 | vd * B12 | | 3500 emit(cond | 0x1D * B23 | d * B22 | 0x3 * B20 | 0x3 * B17 | vd * B12 | |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4067 DCHECK(is_uint12(offset)); | 4109 DCHECK(is_uint12(offset)); |
4068 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset)); | 4110 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset)); |
4069 } | 4111 } |
4070 } | 4112 } |
4071 | 4113 |
4072 | 4114 |
4073 } // namespace internal | 4115 } // namespace internal |
4074 } // namespace v8 | 4116 } // namespace v8 |
4075 | 4117 |
4076 #endif // V8_TARGET_ARCH_ARM | 4118 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |