Skip to content
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

[NVPTX] Make i16x2 a native type and add supported vec instructions #65799

Merged
merged 2 commits into from
Sep 8, 2023

Conversation

ThomasRaoux
Copy link
Contributor

recommit #65432 with minor bug fix for bitcasts

@ThomasRaoux ThomasRaoux requested a review from a team as a code owner September 8, 2023 20:14
@ThomasRaoux ThomasRaoux requested a review from Artem-B September 8, 2023 20:14
@ThomasRaoux ThomasRaoux merged commit 0a7a926 into llvm:main Sep 8, 2023
Copy link
Member

@Artem-B Artem-B left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a test nit.

; COMMON: st.param.b32 [func_retval0+0], [[R]];
; COMMON: ret;
define <2 x half> @test_bitcast_2xi16_to_2xhalf(i16 %a) #0 {
%ins.0 = insertelement <2 x i16> undef, i16 %a, i32 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need similar constructs in the other bitcast tests, as the bitcast would otherwise just dropped.

I wonder if there's a better way to make sure we do end up lowering specifically bitcast.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need similar constructs in the other bitcast tests, as the bitcast would otherwise just dropped.

I wonder if there's a better way to make sure we do end up lowering specifically bitcast.

good point, let me send another PR for those

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants