diff options
Diffstat (limited to 'test/CodeGen/PowerPC/vrspill.ll')
-rw-r--r-- | test/CodeGen/PowerPC/vrspill.ll | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/CodeGen/PowerPC/vrspill.ll b/test/CodeGen/PowerPC/vrspill.ll index c3d1bf8..b55e129 100644 --- a/test/CodeGen/PowerPC/vrspill.ll +++ b/test/CodeGen/PowerPC/vrspill.ll @@ -1,5 +1,6 @@ -; RUN: llc -O0 -mtriple=powerpc-unknown-linux-gnu -mattr=+altivec -verify-machineinstrs < %s | FileCheck %s -; RUN: llc -O0 -mtriple=powerpc64-unknown-linux-gnu -mattr=+altivec -verify-machineinstrs -fast-isel=false < %s | FileCheck %s +; RUN: llc -O0 -mtriple=powerpc-unknown-linux-gnu -mattr=+altivec -mattr=-vsx -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -O0 -mtriple=powerpc64-unknown-linux-gnu -mattr=+altivec -mattr=-vsx -verify-machineinstrs -fast-isel=false -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -O0 -mtriple=powerpc64-unknown-linux-gnu -mattr=+altivec -mattr=+vsx -verify-machineinstrs -fast-isel=false -mcpu=pwr7 < %s | FileCheck -check-prefix=CHECK-VSX %s ; This verifies that we generate correct spill/reload code for vector regs. @@ -15,4 +16,9 @@ entry: ; CHECK: stvx 2, +; We would prefer to test for "stxvw4x 34," but current -O0 code +; needlessly generates "vor 3,2,2 / stxvw4x 35,0,3", so we'll settle for +; the opcode. +; CHECK-VSX: stxvw4x + declare void @foo(i32*) |