forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AMDGPU] Reorganize tests to unblock llvm#112403 (llvm#115503)
We’re facing an issue (llvm#113782) that is currently blocking llvm#112403. However, since llvm#112403 involves extensive test changes, I’d prefer to land it as soon as possible. This PR reorganizes the tests by moving test cases expected to fail into a separate file. Additionally, it changes the `[15 x i32]` arguments to `[13 x i32]` to bypass the issue.
- Loading branch information
Showing
2 changed files
with
66 additions
and
65 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
llvm/test/CodeGen/AMDGPU/call-args-inreg-no-sgpr-for-csrspill-xfail.ll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
; RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 %s -filetype=null 2>&1 | FileCheck -enable-var-scope %s | ||
|
||
; CHECK: LLVM ERROR: failed to find free scratch register | ||
|
||
declare hidden void @external_void_func_a15i32_inreg([15 x i32] inreg) #0 | ||
declare hidden void @external_void_func_a16i32_inreg([16 x i32] inreg) #0 | ||
declare hidden void @external_void_func_a15i32_inreg_i32_inreg([15 x i32] inreg, i32 inreg) #0 | ||
|
||
define void @test_call_external_void_func_a15i32_inreg([15 x i32] inreg %arg0) #0 { | ||
call void @external_void_func_a15i32_inreg([15 x i32] inreg %arg0) | ||
ret void | ||
} | ||
|
||
define void @test_call_external_void_func_a16i32_inreg([16 x i32] inreg %arg0) #0 { | ||
call void @external_void_func_a16i32_inreg([16 x i32] inreg %arg0) | ||
ret void | ||
} | ||
|
||
define void @test_call_external_void_func_a15i32_inreg_i32_inreg([15 x i32] inreg %arg0, i32 inreg %arg1) #0 { | ||
call void @external_void_func_a15i32_inreg_i32_inreg([15 x i32] inreg %arg0, i32 inreg %arg1) | ||
ret void | ||
} | ||
|
||
attributes #0 = { nounwind } | ||
|
||
!llvm.module.flags = !{!0} | ||
!0 = !{i32 1, !"amdhsa_code_object_version", i32 400} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters