[X86] Change MS inline asm clobber list filter to check for 'fpsr' instead of 'fpsw' after D57641.

Summary: The backend used to print the x87 FPSW register as 'fpsw', but gcc inline asm uses 'fpsr'. After D57641, the backend now uses 'fpsr' to match.

Reviewers: rnk

Reviewed By: rnk

Subscribers: eraman, cfe-commits, llvm-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D57642

llvm-svn: 353142
This commit is contained in:
Craig Topper 2019-02-05 06:13:14 +00:00
parent f86eb00f12
commit 879a45633d
1 changed files with 1 additions and 1 deletions

View File

@ -636,7 +636,7 @@ StmtResult Parser::ParseMicrosoftAsmStatement(SourceLocation AsmLoc) {
// Filter out "fpsw" and "mxcsr". They aren't valid GCC asm clobber // Filter out "fpsw" and "mxcsr". They aren't valid GCC asm clobber
// constraints. Clang always adds fpsr to the clobber list anyway. // constraints. Clang always adds fpsr to the clobber list anyway.
llvm::erase_if(Clobbers, [](const std::string &C) { llvm::erase_if(Clobbers, [](const std::string &C) {
return C == "fpsw" || C == "mxcsr"; return C == "fpsr" || C == "mxcsr";
}); });
// Build the vector of clobber StringRefs. // Build the vector of clobber StringRefs.