diff options
author | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | 2019-07-11 21:19:33 +0000 |
---|---|---|
committer | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | 2019-07-11 21:19:33 +0000 |
commit | e67cc380a800d91297bae9e82ea3357ff39e379d (patch) | |
tree | f5638751a2f622faef02c4a7533cc95fd82e8fef /llvm/test/CodeGen/AMDGPU/illegal-sgpr-to-vgpr-copy.ll | |
parent | 6bd26db06aae4fd27ea38f1aaac382005a079d29 (diff) | |
download | bcm5719-llvm-e67cc380a800d91297bae9e82ea3357ff39e379d.tar.gz bcm5719-llvm-e67cc380a800d91297bae9e82ea3357ff39e379d.zip |
[AMDGPU] gfx908 mfma support
Differential Revision: https://reviews.llvm.org/D64584
llvm-svn: 365824
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/illegal-sgpr-to-vgpr-copy.ll')
-rw-r--r-- | llvm/test/CodeGen/AMDGPU/illegal-sgpr-to-vgpr-copy.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/illegal-sgpr-to-vgpr-copy.ll b/llvm/test/CodeGen/AMDGPU/illegal-sgpr-to-vgpr-copy.ll index 0c5b8fbda22..abcf3342fcf 100644 --- a/llvm/test/CodeGen/AMDGPU/illegal-sgpr-to-vgpr-copy.ll +++ b/llvm/test/CodeGen/AMDGPU/illegal-sgpr-to-vgpr-copy.ll @@ -42,4 +42,21 @@ define amdgpu_kernel void @illegal_vgpr_to_sgpr_copy_v16i32() #0 { ret void } +; ERR: error: <unknown>:0:0: in function illegal_agpr_to_sgpr_copy_i32 void (): illegal SGPR to VGPR copy +; GCN: ; illegal copy a1 to s9 +define amdgpu_kernel void @illegal_agpr_to_sgpr_copy_i32() #1 { + %agpr = call i32 asm sideeffect "; def $0", "=${a1}"() + call void asm sideeffect "; use $0", "${s9}"(i32 %agpr) + ret void +} + +; ERR: error: <unknown>:0:0: in function illegal_agpr_to_sgpr_copy_v2i32 void (): illegal SGPR to VGPR copy +; GCN: ; illegal copy a[0:1] to s[10:11] +define amdgpu_kernel void @illegal_agpr_to_sgpr_copy_v2i32() #1 { + %vgpr = call <2 x i32> asm sideeffect "; def $0", "=${a[0:1]}"() + call void asm sideeffect "; use $0", "${s[10:11]}"(<2 x i32> %vgpr) + ret void +} + attributes #0 = { nounwind } +attributes #1 = { nounwind "target-cpu"="gfx908" } |