Skip to content

Assembler fails on capitalized instruction #87917

@boomanaiden154

Description

@boomanaiden154

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions