aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2012-10-22 17:47:37 +0000
committerDimitry Andric <dim@FreeBSD.org>2012-10-22 17:47:37 +0000
commitbf3d1021334f4d19cf4fa95bd409db11c4dcfb9e (patch)
treec99847ebc9aaeb2a3282f4ec64851e860b7b7427
parentac9caaf57fca26a2536e5b911992a8ba067a9a06 (diff)
downloadsrc-bf3d1021334f4d19cf4fa95bd409db11c4dcfb9e.tar.gz
src-bf3d1021334f4d19cf4fa95bd409db11c4dcfb9e.zip
Notes
-rw-r--r--contrib/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp b/contrib/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
index c89d1af500f8..c4b75a60176c 100644
--- a/contrib/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
+++ b/contrib/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
@@ -307,7 +307,9 @@ bool X86AsmBackend::writeNopData(uint64_t Count, MCObjectWriter *OW) const {
};
// This CPU doesnt support long nops. If needed add more.
- if (CPU == "geode") {
+ // FIXME: Can we get this from the subtarget somehow?
+ if (CPU == "generic" || CPU == "i386" || CPU == "i486" || CPU == "i586" ||
+ CPU == "pentium" || CPU == "pentium-mmx" || CPU == "geode") {
for (uint64_t i = 0; i < Count; ++i)
OW->Write8(0x90);
return true;