diff options
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/spe-vsx-incompatibility.ll')
-rw-r--r-- | llvm/test/CodeGen/PowerPC/spe-vsx-incompatibility.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/spe-vsx-incompatibility.ll b/llvm/test/CodeGen/PowerPC/spe-vsx-incompatibility.ll new file mode 100644 index 0000000..06c8f9a --- /dev/null +++ b/llvm/test/CodeGen/PowerPC/spe-vsx-incompatibility.ll @@ -0,0 +1,8 @@ +; 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 +} |