
PPCSubtarget is not always initialized, depending on which passes are running, and in our downstream fork, -enable-matrix is the default configuration (regardless of whether matrix intrinsics are present in the IR), which triggers a fatal error in builtins-ppc-fpconstrained.c.
9 lines
342 B
LLVM
9 lines
342 B
LLVM
; Adding -enable-matrix, which is disabled by default, forces the initialization
|
|
; of the PPCSubtarget which verifies the incompatible CPU features.
|
|
; RUN: not llc -mtriple=powerpcspe -mattr=+vsx -enable-matrix < %s 2>&1 | FileCheck %s
|
|
|
|
; CHECK: SPE and traditional floating point cannot both be enabled
|
|
define void @test() {
|
|
ret void
|
|
}
|