[PATCH] D45864: [RISCV] Support .option rvc and norvc
Alex Bradbury via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 3 07:32:34 PDT 2018
asb added a comment.
There's a corner case we're probably going to encounter here vs gcc.
In GCC, `.option rvc` or `.option norvc` in inline asm will have the effect of enabling/disabling instruction compression from that point onwards. I assume it won't have that effect with LLVM unless you use -save-temps. It might be that we decide this use of inline asm isn't supported by LLVM and people should use appropriate function or module attributes instead. Either way, a test which demonstrates the behaviour would be worthwhile.
https://reviews.llvm.org/D45864
More information about the llvm-commits
mailing list