Skip to content

[BOLT] Fix runtime/instrument-wrong-target.s test #82858

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 1 commit into from
Feb 26, 2024
Merged

Conversation

ayermolo
Copy link
Contributor

Test was failing when only X86 was specified for LLVM_TARGETS_TO_BUILD. Changed so that it will now report unsupporeted.

For "X86;AArch64" it still passes.
For "X86" reports UNSUPPORTED: BOLT :: runtime/instrument-wrong-target.s (1 of 1)

Test was failing when only X86 was specified for LLVM_TARGETS_TO_BUILD. Changed
so that it will now report unsupporeted.

For "X86;AArch64" it still passes.
For "X86" reports UNSUPPORTED: BOLT :: runtime/instrument-wrong-target.s (1 of
1)
@@ -1,7 +1,8 @@
# Test that BOLT errs when trying to instrument a binary with a different
# architecture than the one BOLT is built for.

# REQUIRES: x86_64-linux,bolt-runtime,target=x86_64{{.*}}
# REQUIRES: x86_64-linux,bolt-runtime
# REQUIRES: target-x86_64 && aarch64-registered-target
Copy link
Member

Choose a reason for hiding this comment

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

I've never seen this syntax with &&. Is it a new addition? Anyway, if you tested it and it works, LG.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if it's a new syntax. I have seen it in some other tests.

@maksfb maksfb requested a review from mtvec February 26, 2024 18:37
@maksfb
Copy link
Contributor

maksfb commented Feb 26, 2024

If the test is X86-specific, we should move it under runtime/X86.

@ayermolo
Copy link
Contributor Author

If the test is X86-specific, we should move it under runtime/X86.

It's not? It needs both x86 and aarch64 to work.

@maksfb
Copy link
Contributor

maksfb commented Feb 26, 2024

If the test is X86-specific, we should move it under runtime/X86.

It's not? It needs both x86 and aarch64 to work.

The host has to be x86. But we can move it afterwords since your fix is targeting a different issue.

@ayermolo ayermolo merged commit 841a416 into llvm:main Feb 26, 2024
@ayermolo ayermolo deleted the fixTest branch February 26, 2024 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants