]> granicus.if.org Git - clang/commit
MS asm: Filter out fpsw clobbers
authorReid Kleckner <reid@kleckner.net>
Thu, 27 Mar 2014 00:00:03 +0000 (00:00 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 27 Mar 2014 00:00:03 +0000 (00:00 +0000)
commitca240502a521ec9cce83498a892be5e4a97b773f
tree1f123a3100de695879e074c9932c4cc94919bf29
parent55b2d89ef0e286fa369cd6af5e6c64d8e8d58b87
MS asm: Filter out fpsw clobbers

When parsing MS inline assembly, we note that fpsw is an implicit def of
most x87 FP operations, and add it to the clobber list.  However, we
don't recognize fpsw as a gcc register name, and we assert.  Clang
always adds an fpsr clobber, which means the same thing to LLVM, so we
can just use that.

This test case was broken by my LLVM change r196939.

Reviewers: echristo

Differential Revision: http://llvm-reviews.chandlerc.com/D2993

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204878 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseStmt.cpp
test/CodeGen/ms-inline-asm.c