Skip to content

[PowerPC] Expand FSINCOS of fp128 #76494

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 2 commits into from
Dec 29, 2023
Merged

[PowerPC] Expand FSINCOS of fp128 #76494

merged 2 commits into from
Dec 29, 2023

Conversation

ecnelises
Copy link
Member

Fixes #76442

@ecnelises ecnelises marked this pull request as ready for review December 28, 2023 08:21
; CHECK-NEXT: mflr r0
; CHECK-NEXT: stdu r1, -64(r1)
; CHECK-NEXT: std r0, 80(r1)
; CHECK-NEXT: .cfi_def_cfa_offset 64
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: remove these unnecessary cfi pseudo instructions.

@@ -1176,6 +1176,7 @@ PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM,
setTruncStoreAction(MVT::f128, MVT::f32, Expand);

// No implementation for these ops for PowerPC.
setOperationAction(ISD::FSINCOS, MVT::f128, Expand);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Have you checked other math related ISD nodes? Are MVT::f128 correctly handled for them?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, according to https://en.cppreference.com/w/c/numeric/math and nodes defined in ISDOpcodes.h. (they were already tested in f128-arith/round/fma.ll)

Copy link
Collaborator

@bzEq bzEq left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Collaborator

@chenzheng1030 chenzheng1030 left a comment

Choose a reason for hiding this comment

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

LGTM

@ecnelises ecnelises merged commit c97a767 into llvm:main Dec 29, 2023
@ecnelises ecnelises deleted the f128_sincos branch December 29, 2023 03:27
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.

[PowerPC] fatal error: error in backend: Cannot select: 0x8e697e8320: f128,f128 = fsincos 0x8e697eb450
3 participants