-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Closed as not planned
Closed as not planned
Copy link
Labels
backend:ARMquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
Description
Several ARM architecture features (and possibly for other archs too, but I only checked ARM) are not included in the table used to validate clang's -mcpu
option. This makes it impossible to specify that, for example, thumb2 instructures are available on a CPU model that doesn't normally support them.
This is particularly annoying when using clang to compile assembly, as it will emit errors like this, while providing no way to enable thumb2 other than by running cc1as directly:
test.s:1:2: error: invalid instruction, any one of the following would fix this:
mov r1, #0
^
test.s:1:10: note: operand must be a register in range [r0, r15]
mov r1, #0
^
test.s:1:2: note: instruction requires: thumb2
mov r1, #0
^
Metadata
Metadata
Assignees
Labels
backend:ARMquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!