[PATCH] D151982: [AArch64] Make .arch without extra features actually take effect
David Spickett via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 2 07:05:01 PDT 2023
DavidSpickett added a comment.
Arm works as expected:
void fn() {
__asm__ volatile (".arch_extension sec\n"
".arch thumbv7\n"
"smc #0\n");
}
<source>:4:24: error: instruction requires: TrustZone
"smc #0\n");
^
`.arch` then `.arch_extension` compiles without error.
Intel does recognise the directive but it (deliberately) ignores it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151982/new/
https://reviews.llvm.org/D151982
More information about the llvm-commits
mailing list