[llvm] r366591 - AMDGPU: Add some function return test cases

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 09:45:48 PDT 2019


Author: arsenm
Date: Fri Jul 19 09:45:48 2019
New Revision: 366591

URL: http://llvm.org/viewvc/llvm-project?rev=366591&view=rev
Log:
AMDGPU: Add some function return test cases

Modified:
    llvm/trunk/test/CodeGen/AMDGPU/function-returns.ll

Modified: llvm/trunk/test/CodeGen/AMDGPU/function-returns.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AMDGPU/function-returns.ll?rev=366591&r1=366590&r2=366591&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/AMDGPU/function-returns.ll (original)
+++ llvm/trunk/test/CodeGen/AMDGPU/function-returns.ll Fri Jul 19 09:45:48 2019
@@ -94,6 +94,16 @@ define i32 @i32_func_void() #0 {
   ret i32 %val
 }
 
+; GCN-LABEL: {{^}}i48_func_void:
+; GCN: buffer_load_dword v0, off
+; GCN-NEXT: buffer_load_ushort v1, off
+; GCN-NEXT: s_waitcnt vmcnt(0)
+; GCN-NEXT: s_setpc_b64
+define i48 @i48_func_void() #0 {
+  %val = load i48, i48 addrspace(1)* undef, align 8
+  ret i48 %val
+}
+
 ; GCN-LABEL: {{^}}i64_func_void:
 ; GCN: buffer_load_dwordx2 v[0:1], off
 ; GCN-NEXT: s_waitcnt vmcnt(0)
@@ -103,6 +113,16 @@ define i64 @i64_func_void() #0 {
   ret i64 %val
 }
 
+; GCN-LABEL: {{^}}i65_func_void:
+; GCN-DAG: buffer_load_dwordx2 v[0:1], off
+; GCN-DAG: buffer_load_ubyte v2, off
+; GCN: s_waitcnt vmcnt(0)
+; GCN-NEXT: s_setpc_b64
+define i65 @i65_func_void() #0 {
+  %val = load i65, i65 addrspace(1)* undef
+  ret i65 %val
+}
+
 ; GCN-LABEL: {{^}}f32_func_void:
 ; GCN: buffer_load_dword v0, off, s[4:7], 0
 ; GCN-NEXT: s_waitcnt vmcnt(0)




More information about the llvm-commits mailing list