2019-11-13 17:08:38 +08:00
|
|
|
; Check that we reject 64-bit mode on 32-bit only CPUs.
|
|
|
|
|
2020-02-12 15:01:35 +08:00
|
|
|
; RUN: not --crash llc < %s -o /dev/null -mtriple=mips64 -mcpu=mips1 2>&1 | FileCheck %s
|
|
|
|
; RUN: not --crash llc < %s -o /dev/null -mtriple=mips64 -mcpu=mips2 2>&1 | FileCheck %s
|
2019-11-13 17:08:38 +08:00
|
|
|
|
2020-02-12 15:01:35 +08:00
|
|
|
; RUN: not --crash llc < %s -o /dev/null -mtriple=mips64 -mcpu=mips32 2>&1 | FileCheck %s
|
|
|
|
; RUN: not --crash llc < %s -o /dev/null -mtriple=mips64 -mcpu=mips32r2 2>&1 | FileCheck %s
|
|
|
|
; RUN: not --crash llc < %s -o /dev/null -mtriple=mips64 -mcpu=mips32r3 2>&1 | FileCheck %s
|
|
|
|
; RUN: not --crash llc < %s -o /dev/null -mtriple=mips64 -mcpu=mips32r5 2>&1 | FileCheck %s
|
|
|
|
; RUN: not --crash llc < %s -o /dev/null -mtriple=mips64 -mcpu=mips32r6 2>&1 | FileCheck %s
|
2019-11-13 17:08:38 +08:00
|
|
|
|
|
|
|
; CHECK: LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!
|
|
|
|
|
|
|
|
define void @foo() {
|
|
|
|
ret void
|
|
|
|
}
|