-
Notifications
You must be signed in to change notification settings - Fork 15k
Open
Labels
Description
When llvm-mc
(with the flags --filetype=obj --assemble
) is run against the following assembly:
.intel_syntax noprefix
rep mov eax, 1
It produces a valid object file as expected. However, when llvm-mc
is run against the same string, but with everything capitalized:
.intel_syntax noprefix
REP MOV EAX, 1
llvm-mc
complains about it:
/tmp/test.s:2:1: error: invalid instruction mnemonic 'MOV'
REP MOV EAX, 1
^~~
I'm not sure if I'm missing something here, but as far as I'm aware, assembly is supposed to be capitalization agnostic.