summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Mips/cpus-no-mips64.ll
blob: 301f6c2152e7a335a8bfcc000c6cd388d610e873 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; Check that we reject 64-bit mode on 32-bit only CPUs.

; RUN: not llc < %s -o /dev/null -mtriple=mips64 -mcpu=mips1 2>&1 | FileCheck %s
; RUN: not llc < %s -o /dev/null -mtriple=mips64 -mcpu=mips2 2>&1 | FileCheck %s

; RUN: not llc < %s -o /dev/null -mtriple=mips64 -mcpu=mips32 2>&1 | FileCheck %s
; RUN: not llc < %s -o /dev/null -mtriple=mips64 -mcpu=mips32r2 2>&1 | FileCheck %s
; RUN: not llc < %s -o /dev/null -mtriple=mips64 -mcpu=mips32r3 2>&1 | FileCheck %s
; RUN: not llc < %s -o /dev/null -mtriple=mips64 -mcpu=mips32r5 2>&1 | FileCheck %s
; RUN: not llc < %s -o /dev/null -mtriple=mips64 -mcpu=mips32r6 2>&1 | FileCheck %s

; CHECK: LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!

define void @foo() {
  ret void
}
OpenPOWER on IntegriCloud