llvm-project/llvm/test/CodeGen/PowerPC/spe-vsx-incompatibility.ll
Guy David cb6d1bbfcd
[PowerPC] Test SPE incompatibility with VSX (#147184)
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.
2025-07-17 00:29:38 +03:00

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
}