Skip to content

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