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.
[GlobalISel] Catching inconsistencies in load memory, result, and ran…
…ge metadata type (llvm#121247) This is a fix for: llvm#97290 Please let me know if that is the right way to address the issue. Thank you! --------- Co-authored-by: Renat Idrisov <[email protected]> Co-authored-by: Matt Arsenault <[email protected]>
- Loading branch information
1 parent
0cf6714
commit 11db7fb
Showing
4 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
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
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
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
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,31 @@ | ||
# RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx942 -run-pass=none -filetype=null %s 2>&1 | FileCheck %s | ||
--- | | ||
define void @mismatched_range_type() { | ||
ret void | ||
} | ||
|
||
!0 = !{i64 -4294967295, i64 4294967296} | ||
|
||
... | ||
--- | ||
name: mismatched_range_type | ||
tracksRegLiveness: true | ||
body: | | ||
bb.0: | ||
liveins: $vgpr0, $vgpr1 | ||
%1:_(s32) = COPY $vgpr0 | ||
%2:_(s32) = COPY $vgpr1 | ||
%0:_(p1) = G_MERGE_VALUES %1(s32), %2(s32) | ||
; CHECK: Bad machine code: range is incompatible with the result type | ||
%3:_(<2 x s32>) = G_LOAD %0(p1) :: (volatile load (s64), align 4, !range !0, addrspace 1) | ||
%4:_(p0) = G_LOAD %0(p1) :: (volatile load (s64), align 4, !range !0, addrspace 1) | ||
%5:_(<2 x p0>) = G_LOAD %0(p1) :: (volatile load (s64), align 4, !range !0, addrspace 1) | ||
$vgpr0_vgpr1 = COPY %3 | ||
SI_RETURN implicit $vgpr0_vgpr1 | ||
... |