[mips] Show an error if 64-bit target triple provided with 32-bit CPU
authorSimon Atanasyan <simon@atanasyan.com>
Wed, 13 Nov 2019 09:08:38 +0000 (12:08 +0300)
committerSimon Atanasyan <simon@atanasyan.com>
Wed, 13 Nov 2019 10:32:39 +0000 (13:32 +0300)
commit068db2ed4d1879e100fb12f2a3d75e38b8867b46
tree4eb7a0caba5fe7a57010141f0a4c2e5e83b44585
parentb3853d852629d1a2713cf47a2422c46c0c630f87
[mips] Show an error if 64-bit target triple provided with 32-bit CPU

When a 64-bit triple is used emit an error if the CPU only supports
32-bit code.

Patch by MiloÅ¡ Stojanović.

Differential Revision: https://reviews.llvm.org/D70018
llvm/lib/Target/Mips/MipsSubtarget.cpp
llvm/test/CodeGen/Mips/cpus-no-mips64.ll [new file with mode: 0644]