aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-30 16:42:53 +0000
committerChris Lattner <sabre@nondot.org>2010-09-30 16:42:53 +0000
commit9ee4aed3b652ea4a4327af2cb1c614dd10cd8b47 (patch)
treea9f489077914be3d46211b9f2a5ab5ef01d25b29 /lib
parentb5a3ec17a4600b0e99bd0f4578e7639cfe46ba5a (diff)
downloadexternal_llvm-9ee4aed3b652ea4a4327af2cb1c614dd10cd8b47.zip
external_llvm-9ee4aed3b652ea4a4327af2cb1c614dd10cd8b47.tar.gz
external_llvm-9ee4aed3b652ea4a4327af2cb1c614dd10cd8b47.tar.bz2
implement support for finit, PR8258
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/X86/AsmParser/X86AsmParser.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/X86/AsmParser/X86AsmParser.cpp b/lib/Target/X86/AsmParser/X86AsmParser.cpp
index e028d41..dc86484 100644
--- a/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@ -1119,7 +1119,8 @@ MatchAndEmitInstruction(SMLoc IDLoc,
// First, handle aliases that expand to multiple instructions.
// FIXME: This should be replaced with a real .td file alias mechanism.
- if (Op->getToken() == "fstsw" || Op->getToken() == "fstcw") {
+ if (Op->getToken() == "fstsw" || Op->getToken() == "fstcw" ||
+ Op->getToken() == "finit") {
MCInst Inst;
Inst.setOpcode(X86::WAIT);
Out.EmitInstruction(Inst);
@@ -1129,6 +1130,7 @@ MatchAndEmitInstruction(SMLoc IDLoc,
StringSwitch<const char*>(Op->getToken())
.Case("fstsw", "fnstsw")
.Case("fstcw", "fnstcw")
+ .Case("finit", "fninit")
.Default(0);
assert(Repl && "Unknown wait-prefixed instruction");
Operands[0] = X86Operand::CreateToken(Repl, IDLoc);