[llvm] d97fb55 - AMDGPU/GlobalISel: Add failing ABI lowering testcases

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 17 06:38:42 PST 2022


Author: Matt Arsenault
Date: 2022-01-17T09:38:35-05:00
New Revision: d97fb55ff35699ed9da3744bc6b6d40a38e1c6f7

URL: https://github.com/llvm/llvm-project/commit/d97fb55ff35699ed9da3744bc6b6d40a38e1c6f7
DIFF: https://github.com/llvm/llvm-project/commit/d97fb55ff35699ed9da3744bc6b6d40a38e1c6f7.diff

LOG: AMDGPU/GlobalISel: Add failing ABI lowering testcases

Added: 
    llvm/test/CodeGen/AMDGPU/GlobalISel/function-returns.v2i65.ll
    llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-function-args.v2i65.ll

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/function-returns.v2i65.ll b/llvm/test/CodeGen/AMDGPU/GlobalISel/function-returns.v2i65.ll
new file mode 100644
index 000000000000..16e5aff2b110
--- /dev/null
+++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/function-returns.v2i65.ll
@@ -0,0 +1,7 @@
+; XFAIL: *
+; RUN: llc -global-isel -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -stop-after=irtranslator -verify-machineinstrs -o - %s
+
+define <2 x i65> @v2i65_func_void() #0 {
+  %val = load <2 x i65>, <2 x i65> addrspace(1)* undef
+  ret <2 x i65> %val
+}

diff  --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-function-args.v2i65.ll b/llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-function-args.v2i65.ll
new file mode 100644
index 000000000000..4611f170bf2f
--- /dev/null
+++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-function-args.v2i65.ll
@@ -0,0 +1,7 @@
+; XFAIL: *
+; RUN: llc -global-isel -march=amdgcn -mcpu=fiji -stop-after=irtranslator -verify-machineinstrs -o - %s
+
+define void @void_func_v2i65(<2 x i65> %arg0) #0 {
+  store <2 x i65> %arg0, <2 x i65> addrspace(1)* undef
+  ret void
+}


        


More information about the llvm-commits mailing list