-
Notifications
You must be signed in to change notification settings - Fork 14.9k
[HVX] Support lowering of setuo, seto. #140765
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
Closed
Closed
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
88b77a4
[HVX] Support lowering of setuo,seto.
kaushik-quicinc a087e11
Add setcc:uno, uo checks for f16
kaushik-quicinc ca8ed96
Use -mcpu=hexagonv79 instead of -mhvx79
kaushik-quicinc e046dd8
Use mattr=hvx79
kaushik-quicinc 42e57ae
Fix typo. hvx79->hvxv79
kaushik-quicinc 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,28 @@ | ||
;; RUN: llc --mtriple=hexagon -mattr=+hvxv79,+hvx-length128b %s -o - | FileCheck %s | ||
|
||
define dso_local void @store_isnan_f32(ptr %a, ptr %isnan_a) local_unnamed_addr { | ||
kaushik-quicinc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
entry: | ||
%arrayidx = getelementptr inbounds nuw float, ptr %a, i32 0 | ||
%0 = load <32 x float>, ptr %arrayidx, align 4 | ||
%.vectorized = fcmp uno <32 x float> %0, zeroinitializer | ||
%.LS.instance = zext <32 x i1> %.vectorized to <32 x i32> | ||
%arrayidx1 = getelementptr inbounds nuw i32, ptr %isnan_a, i32 0 | ||
store <32 x i32> %.LS.instance, ptr %arrayidx1, align 4 | ||
ret void | ||
} | ||
;; CHECK: store_isnan_f32 | ||
;; CHECK: vcmp.eq({{v[0-9]+.w}},{{v[0-9]+.w}}) | ||
|
||
define dso_local void @store_isnan_f16(ptr %a, ptr %isnan_a) local_unnamed_addr { | ||
entry: | ||
%arrayidx = getelementptr inbounds nuw half, ptr %a, i32 0 | ||
%0 = load <64 x half>, ptr %arrayidx, align 2 | ||
%.vectorized = fcmp uno <64 x half> %0, zeroinitializer | ||
%conv.LS.instance = zext <64 x i1> %.vectorized to <64 x i16> | ||
%arrayidx1 = getelementptr inbounds nuw i16, ptr %isnan_a, i32 0 | ||
store <64 x i16> %conv.LS.instance, ptr %arrayidx1, align 2 | ||
ret void | ||
} | ||
|
||
;; CHECK: store_isnan_f16 | ||
;; CHECK: vcmp.eq({{v[0-9]+.h}},{{v[0-9]+.h}}) |
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.