forked from OSchip/llvm-project
[ms] [llvm-ml] Fix capitalization of the ignored CPU directives
These directives are matched in lowercase, so make sure to use lowercase for their P suffix. Differential Revision: https://reviews.llvm.org/D104206
This commit is contained in:
parent
56edcbc2ad
commit
d81c059c3e
|
@ -138,14 +138,14 @@ class COFFMasmParser : public MCAsmParserExtension {
|
|||
|
||||
// Processor directives; all ignored
|
||||
addDirectiveHandler<&COFFMasmParser::IgnoreDirective>(".386");
|
||||
addDirectiveHandler<&COFFMasmParser::IgnoreDirective>(".386P");
|
||||
addDirectiveHandler<&COFFMasmParser::IgnoreDirective>(".386p");
|
||||
addDirectiveHandler<&COFFMasmParser::IgnoreDirective>(".387");
|
||||
addDirectiveHandler<&COFFMasmParser::IgnoreDirective>(".486");
|
||||
addDirectiveHandler<&COFFMasmParser::IgnoreDirective>(".486P");
|
||||
addDirectiveHandler<&COFFMasmParser::IgnoreDirective>(".486p");
|
||||
addDirectiveHandler<&COFFMasmParser::IgnoreDirective>(".586");
|
||||
addDirectiveHandler<&COFFMasmParser::IgnoreDirective>(".586P");
|
||||
addDirectiveHandler<&COFFMasmParser::IgnoreDirective>(".586p");
|
||||
addDirectiveHandler<&COFFMasmParser::IgnoreDirective>(".686");
|
||||
addDirectiveHandler<&COFFMasmParser::IgnoreDirective>(".686P");
|
||||
addDirectiveHandler<&COFFMasmParser::IgnoreDirective>(".686p");
|
||||
addDirectiveHandler<&COFFMasmParser::IgnoreDirective>(".k3d");
|
||||
addDirectiveHandler<&COFFMasmParser::IgnoreDirective>(".mmx");
|
||||
addDirectiveHandler<&COFFMasmParser::IgnoreDirective>(".xmm");
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
# RUN: llvm-ml -m32 -filetype=s %s /Fo - | FileCheck %s
|
||||
|
||||
.386p
|
||||
.model flat
|
||||
|
||||
.code
|
||||
mov eax, eax
|
||||
end
|
||||
|
||||
; CHECK-NOT: 386p
|
||||
; CHECK-NOT: model
|
||||
; CHECK-NOT: flat
|
Loading…
Reference in New Issue