AMDGPU/GlobalISel: Add failing ABI lowering testcases
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sun, 16 Jan 2022 16:14:58 +0000 (11:14 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 17 Jan 2022 14:38:35 +0000 (09:38 -0500)
llvm/test/CodeGen/AMDGPU/GlobalISel/function-returns.v2i65.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-function-args.v2i65.ll [new file with mode: 0644]

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 (file)
index 0000000..16e5aff
--- /dev/null
@@ -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 (file)
index 0000000..4611f17
--- /dev/null
@@ -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
+}