| 615 | <h4>V_CVT_PK_I16_I32</h4> |
| 616 | <p>Opcode VOP2: 49 (0x31) for GCN 1.0/1.1<br /> |
| 617 | Opcode VOP3A: 305 (0x131) for GCN 1.0/1.1<br /> |
| 618 | Syntax: V_CVT_PK_I16_I32 VDST, SRC0, SRC1<br /> |
| 619 | Description: Convert signed value from SRC0 and SRC1 to signed 16-bit values with |
| 620 | clamping, and store first value to low 16-bit and second to high 16-bit of the VDST.<br /> |
| 621 | Operation:<br /> |
| 622 | <code>INT16 D0 = MAX(MIN((INT32)SRC0, 0x7fff), -0x8000) |
| 623 | INT16 D1 = MAX(MIN((INT32)SRC1, 0x7fff), -0x8000) |
| 624 | VDST = D0 | (((UINT32)D1) << 16)</code></p> |
| 625 | <h4>V_CVT_PK_U16_U32</h4> |
| 626 | <p>Opcode VOP2: 48 (0x30) for GCN 1.0/1.1<br /> |
| 627 | Opcode VOP3A: 304 (0x130) for GCN 1.0/1.1<br /> |
| 628 | Syntax: V_CVT_PK_U16_U32 VDST, SRC0, SRC1<br /> |
| 629 | Description: Convert unsigned value from SRC0 and SRC1 to unsigned 16-bit values with |
| 630 | clamping, and store first value to low 16-bit and second to high 16-bit of the VDST.<br /> |
| 631 | Operation:<br /> |
| 632 | <code>UINT16 D0 = MIN(SRC0, 0xffff) |
| 633 | UINT16 D1 = MIN(SRC1, 0xffff) |
| 634 | VDST = D0 | (((UINT32)D1) << 16)</code></p> |
670 | | VDST = D0 | (((UINT32)D1) << 16)</code></p> |
671 | | <h4>V_CVT_PK_U16_U32</h4> |
672 | | <p>Opcode VOP2: 48 (0x30) for GCN 1.0/1.1<br /> |
673 | | Opcode VOP3A: 304 (0x130) for GCN 1.0/1.1<br /> |
674 | | Syntax: V_CVT_PK_U16_U32 VDST, SRC0, SRC1<br /> |
675 | | Description: Convert unsigned value from SRC0 and SRC1 to unsigned 16-bit values with |
676 | | clamping, and store first value to low 16-bit and second to high 16-bit of the VDST.<br /> |
677 | | Operation:<br /> |
678 | | <code>UINT16 D0 = MIN(SRC0, 0xffff) |
679 | | UINT16 D1 = MIN(SRC1, 0xffff) |
680 | | VDST = D0 | (((UINT32)D1) << 16)</code></p> |
681 | | <h4>V_CVT_PK_I16_I32</h4> |
682 | | <p>Opcode VOP2: 49 (0x31) for GCN 1.0/1.1<br /> |
683 | | Opcode VOP3A: 305 (0x131) for GCN 1.0/1.1<br /> |
684 | | Syntax: V_CVT_PK_I16_I32 VDST, SRC0, SRC1<br /> |
685 | | Description: Convert signed value from SRC0 and SRC1 to signed 16-bit values with |
686 | | clamping, and store first value to low 16-bit and second to high 16-bit of the VDST.<br /> |
687 | | Operation:<br /> |
688 | | <code>INT16 D0 = MAX(MIN((INT32)SRC0, 0x7fff), -0x8000) |
689 | | INT16 D1 = MAX(MIN((INT32)SRC1, 0x7fff), -0x8000) |