[SystemZ] Automatically detect zEC12 and z196 hosts
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Thu, 31 Oct 2013 12:14:17 +0000 (12:14 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Thu, 31 Oct 2013 12:14:17 +0000 (12:14 +0000)
commit793ce99ea79b2a51a9ace18adcae60678efaae9e
tree9db9d8bfdd4739b5beffb57093e91d28dfe7825f
parentc2884320feebc543d2ce51151d5418dfc18da9e4
[SystemZ] Automatically detect zEC12 and z196 hosts

As on other hosts, the CPU identification instruction is priveleged,
so we need to look through /proc/cpuinfo.  I copied the PowerPC way of
handling "generic".

Several tests were implicitly assuming z10 and so failed on z196.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193742 91177308-0d34-0410-b5e6-96231b3b80d8
23 files changed:
lib/Support/Host.cpp
lib/Target/SystemZ/SystemZProcessors.td
lib/Target/SystemZ/SystemZSubtarget.cpp
test/CodeGen/SystemZ/atomicrmw-minmax-03.ll
test/CodeGen/SystemZ/atomicrmw-minmax-04.ll
test/CodeGen/SystemZ/cond-store-01.ll
test/CodeGen/SystemZ/cond-store-02.ll
test/CodeGen/SystemZ/fp-cmp-01.ll
test/CodeGen/SystemZ/fp-cmp-02.ll
test/CodeGen/SystemZ/fp-cmp-03.ll
test/CodeGen/SystemZ/fp-move-02.ll
test/CodeGen/SystemZ/frame-13.ll
test/CodeGen/SystemZ/frame-14.ll
test/CodeGen/SystemZ/frame-15.ll
test/CodeGen/SystemZ/frame-16.ll
test/CodeGen/SystemZ/frame-18.ll
test/CodeGen/SystemZ/int-add-11.ll
test/CodeGen/SystemZ/int-conv-02.ll
test/CodeGen/SystemZ/int-conv-06.ll
test/CodeGen/SystemZ/risbg-01.ll
test/CodeGen/SystemZ/setcc-01.ll
test/CodeGen/SystemZ/setcc-02.ll
test/CodeGen/SystemZ/spill-01.ll