Don't use nopl in cpus that don't support it.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 25 Nov 2013 20:15:14 +0000 (20:15 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 25 Nov 2013 20:15:14 +0000 (20:15 +0000)
commit8f6631cdb6042a356198dfd7dc267596ce5bea58
treeb72a0c41b4db948d71e8ed6ec0427194583add0c
parent1edc33b92474bc6a9b60d883cec3f0260a3c1f2d
Don't use nopl in cpus that don't support it.

Patch by Mikulas Patocka. I added the test. I checked that for cpu names that
gas knows about, it also doesn't generate nopl.

The modified cpus:
i686 - there are i686-class CPUs that don't have nopl: Via c3, Transmeta
        Crusoe, Microsoft VirtualBox - see
        https://bbs.archlinux.org/viewtopic.php?pid=775414
k6, k6-2, k6-3, winchip-c6, winchip2 - these are 586-class CPUs
via c3 c3-2 - see https://bugs.archlinux.org/task/19733 as a proof that
        Via c3 and c3-Nehemiah don't have nopl

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195679 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
test/MC/X86/x86_nop.s