diff options
author | Dmitry Preobrazhensky <dmitry.preobrazhensky@amd.com> | 2017-04-05 16:08:21 +0000 |
---|---|---|
committer | Dmitry Preobrazhensky <dmitry.preobrazhensky@amd.com> | 2017-04-05 16:08:21 +0000 |
commit | 45db65037f35d4dab521393b079c4782af48b56c (patch) | |
tree | d1ae9096d439cbf7ddf5910245c4bad4e35fe36f /llvm/test/MC | |
parent | 92a5ba6da5233e4afcac450c6f69aab84c0ff1b7 (diff) | |
download | bcm5719-llvm-45db65037f35d4dab521393b079c4782af48b56c.tar.gz bcm5719-llvm-45db65037f35d4dab521393b079c4782af48b56c.zip |
[AMDGPU][MC] Fix for Bug 28167 + LIT tests
Corrected src0 for v_writelane_b32:
- Enabled inline constants and literals for SI/CI (VOP2)
- Enabled inline constants for VI (VOP3)
Reviewers: vpykhtin, arsenm
https://reviews.llvm.org/D31463
llvm-svn: 299555
Diffstat (limited to 'llvm/test/MC')
-rw-r--r-- | llvm/test/MC/AMDGPU/vop2.s | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/MC/AMDGPU/vop2.s b/llvm/test/MC/AMDGPU/vop2.s index be382c4c260..078b6863800 100644 --- a/llvm/test/MC/AMDGPU/vop2.s +++ b/llvm/test/MC/AMDGPU/vop2.s @@ -120,6 +120,14 @@ v_readlane_b32 s1, v2, s3 // VI: v_writelane_b32 v1, s2, 4 ; encoding: [0x01,0x00,0x8a,0xd2,0x02,0x08,0x01,0x00] v_writelane_b32 v1, s2, 4 +// SICI: v_writelane_b32 v2, 1, s4 ; encoding: [0x81,0x08,0x04,0x04] +// VI: v_writelane_b32 v2, 1, s4 ; encoding: [0x02,0x00,0x8a,0xd2,0x81,0x08,0x00,0x00] +v_writelane_b32 v2, 1, s4 + +// SICI: v_writelane_b32 v255, 0xaf123456, 2 ; encoding: [0xff,0x04,0xff,0x05,0x56,0x34,0x12,0xaf] +// NOVI: error: instruction not supported on this GPU +v_writelane_b32 v255, 0xaf123456, 2 + // SICI: v_add_f32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x06] // VI: v_add_f32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x02] v_add_f32 v1, v2, v3 |