-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[SelectionDAG] Use EVT::getIntegerVT
in getBitcastedAnyExtOrTrunc
#96658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,32 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 | ||
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx942 %s -o - | FileCheck %s | ||
|
||
define void @no_corresponding_integer_type(i8 %arg, ptr addrspace(1) %ptr) { | ||
shiltian marked this conversation as resolved.
Show resolved
Hide resolved
|
||
; CHECK-LABEL: no_corresponding_integer_type: | ||
; CHECK: ; %bb.0: ; %entry | ||
; CHECK-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) | ||
; CHECK-NEXT: v_mov_b32_e32 v3, v2 | ||
; CHECK-NEXT: v_mov_b32_e32 v2, v1 | ||
; CHECK-NEXT: global_load_ushort v1, v[2:3], off | ||
; CHECK-NEXT: global_load_ubyte v4, v[2:3], off offset:2 | ||
; CHECK-NEXT: s_mov_b32 s0, 0xc0c0400 | ||
; CHECK-NEXT: s_mov_b32 s1, 0xc0c0000 | ||
; CHECK-NEXT: s_waitcnt vmcnt(0) | ||
; CHECK-NEXT: v_lshl_or_b32 v1, v4, 16, v1 | ||
; CHECK-NEXT: v_perm_b32 v1, v0, v1, s0 | ||
; CHECK-NEXT: v_perm_b32 v0, v0, v0, s1 | ||
; CHECK-NEXT: v_dot4_u32_u8 v0, v0, v1, 1 | ||
; CHECK-NEXT: s_nop 2 | ||
; CHECK-NEXT: global_store_byte v[2:3], v0, off | ||
; CHECK-NEXT: s_waitcnt vmcnt(0) | ||
; CHECK-NEXT: s_setpc_b64 s[30:31] | ||
entry: | ||
%load = load <3 x i8>, ptr addrspace(1) %ptr, align 1 | ||
%elt0 = extractelement <3 x i8> %load, i64 0 | ||
%mul0 = mul i8 %elt0, %arg | ||
%or = or i8 %mul0, 1 | ||
%mul1 = mul i8 %arg, %arg | ||
%add = add i8 %mul1, %or | ||
store i8 %add, ptr addrspace(1) %ptr, align 1 | ||
ret void | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.