Skip to content

Conversation

@aemerson
Copy link
Contributor

@aemerson aemerson commented Jan 4, 2025

This compile time test uses inline asm with .arch directives to set the target feature. It is however broken and always fails, since each asm() construct in LLVM sets up a new AsmParser, and therefore the .arch directive has no effect on later asm() contents. To fix this we need to use a single inline asm() call with the entire code chunk to emit contained inside.

…-rt. This compile time test uses inline asm with .arch directives to set the target feature. It is however broken and always fails, since each asm() construct in LLVM sets up a new AsmParser, and therefore the .arch directive has no effect on later asm() contents. To fix this we need to use a single inline asm() call with the entire code chunk to emit contained inside.
@aemerson aemerson merged commit 3c8344f into llvm:main Jan 6, 2025
9 checks passed
@aemerson aemerson deleted the fix-crt-sme-check branch January 6, 2025 09:38
paulhuggett pushed a commit to paulhuggett/llvm-project that referenced this pull request Jan 7, 2025
…-rt (llvm#121625) This compile time test uses inline asm with `.arch` directives to set the target feature. It is however broken and always fails, since each `asm()` construct in LLVM sets up a new AsmParser, and therefore the `.arch` directive has no effect on later `asm()` contents. To fix this we need to use a single inline `asm()` call with the entire code chunk to emit contained inside.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants