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 neon_vaddd_s64 and neon_vaddd_u64 #1255

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

Conversation

AmrDeveloper
Copy link
Member

// return vaddd_u64(a, b);
// }
// CIR-LABEL: vaddd_s64
// CIR: [[v3:%.*]] = cir.binop(add, [[v1:%.*]], [[v2:%.*]]) : !s64i
Copy link
Collaborator

Choose a reason for hiding this comment

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

since v3, v1, v2 are not referenced in later lines, we could just use
{{.*}} like in the test case of test_vaddvq_f64 in this test file.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you, Done

// CIR: [[v3:%.*]] = cir.binop(add, [[v1:%.*]], [[v2:%.*]]) : !s64i

// LLVM-LABEL: @test_vaddd_s64(
// LLVM: [[VADDD_I:%.*]] = add i64 [[a:%.*]], [[b:%.*]]
Copy link
Collaborator

Choose a reason for hiding this comment

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

NIT
we could just add a line to make sure that a and b are actually arguments to the test function, like
`
// LLVM-LABEL: @test_vaddd_s64

// LLVM-SAME: (i64 [[a:%.]], i64 [[b:%.]])

or simply do [[VADDD_I:%.*]] = add i64 %0, %1` here.

Same comments for other test

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you, Done

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