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

[CIR][CIRGen][Builtin][Neon] Lower vaddh_f16, vsubh_f16, vmulh_f16 and vdivh_f16 #1258

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AmrDeveloper
Copy link
Member

Lowering:

  • vaddh_f16
  • vsubh_f16
  • vmulh_f16
  • vdivh_f16

Copy link

github-actions bot commented Dec 25, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

// LLVM-LABEL: test_vmulh_f16
// LLVM: [[MUL:%.*]] = fmul half [[A:%.*]], [[B:%.*]]
// LLVM: ret half [[MUL]]
float16_t test_vmulh_f16(float16_t a, float16_t b) {
Copy link
Collaborator

@ghehg ghehg Jan 2, 2025

Choose a reason for hiding this comment

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

Similar to this comment,
here [[A:%.]] and [[B:%.]] could come from func arg, or simply be replaced by %0 and %1.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done, thanks

Copy link
Collaborator

@ghehg ghehg left a comment

Choose a reason for hiding this comment

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

LGTM, a minor suggestion of change to the test.

@AmrDeveloper AmrDeveloper requested a review from ghehg January 2, 2025 17:20
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