summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86FloatingPoint.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-07-02 07:23:40 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-07-02 07:23:40 +0000
commit0d3d95662f5a5b43045e8707b773048a7c317f13 (patch)
treee4b1dce09250c7b739a1b9bb6057003b3f984f1f /lib/Target/X86/X86FloatingPoint.cpp
parent9d812a2805161665d56a78734da98b58f39ce0fc (diff)
downloadllvm-0d3d95662f5a5b43045e8707b773048a7c317f13.tar.gz
llvm-0d3d95662f5a5b43045e8707b773048a7c317f13.tar.bz2
llvm-0d3d95662f5a5b43045e8707b773048a7c317f13.tar.xz
Consistent diagnostic capitalization and redundant context elimination.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134311 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86FloatingPoint.cpp')
-rw-r--r--lib/Target/X86/X86FloatingPoint.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/Target/X86/X86FloatingPoint.cpp b/lib/Target/X86/X86FloatingPoint.cpp
index 04e01ddf8f..6eed6abd43 100644
--- a/lib/Target/X86/X86FloatingPoint.cpp
+++ b/lib/Target/X86/X86FloatingPoint.cpp
@@ -1467,27 +1467,24 @@ void FPS::handleSpecialFP(MachineBasicBlock::iterator &I) {
}
if (STUses && !isMask_32(STUses))
- MI->emitError("Inline asm fixed input regs"
- " must be last on the x87 stack");
+ MI->emitError("fixed input regs must be last on the x87 stack");
unsigned NumSTUses = CountTrailingOnes_32(STUses);
// Defs must be contiguous from the stack top. ST0-STn.
if (STDefs && !isMask_32(STDefs)) {
- MI->emitError("Inline asm output regs"
- " must be last on the x87 stack");
+ MI->emitError("output regs must be last on the x87 stack");
STDefs = NextPowerOf2(STDefs) - 1;
}
unsigned NumSTDefs = CountTrailingOnes_32(STDefs);
// So must the clobbered stack slots. ST0-STm, m >= n.
if (STClobbers && !isMask_32(STDefs | STClobbers))
- MI->emitError("Inline asm clobbers must be last on the x87 stack");
+ MI->emitError("clobbers must be last on the x87 stack");
// Popped inputs are the ones that are also clobbered or defined.
unsigned STPopped = STUses & (STDefs | STClobbers);
if (STPopped && !isMask_32(STPopped))
- MI->emitError("Inline asm implicitly popped regs"
- " must be last on the x87 stack");
+ MI->emitError("implicitly popped regs must be last on the x87 stack");
unsigned NumSTPopped = CountTrailingOnes_32(STPopped);
DEBUG(dbgs() << "Asm uses " << NumSTUses << " fixed regs, pops "
@@ -1503,7 +1500,7 @@ void FPS::handleSpecialFP(MachineBasicBlock::iterator &I) {
if (!Op.isReg() || Op.getReg() < X86::FP0 || Op.getReg() > X86::FP6)
continue;
if (!Op.isUse())
- MI->emitError("Illegal \"f\" output constraint in inline asm");
+ MI->emitError("illegal \"f\" output constraint");
unsigned FPReg = getFPReg(Op);
FPUsed |= 1U << FPReg;