summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/lxvw4x-bug.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/PowerPC/lxvw4x-bug.ll')
-rw-r--r--test/CodeGen/PowerPC/lxvw4x-bug.ll13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/CodeGen/PowerPC/lxvw4x-bug.ll b/test/CodeGen/PowerPC/lxvw4x-bug.ll
index 9390819d560..33185671d40 100644
--- a/test/CodeGen/PowerPC/lxvw4x-bug.ll
+++ b/test/CodeGen/PowerPC/lxvw4x-bug.ll
@@ -1,4 +1,13 @@
-; RUN: llc -verify-machineinstrs -O0 -mcpu=pwr8 -mtriple=powerpc64le-unknown-unknown < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs -O0 -mcpu=pwr8 \
+; RUN: -mtriple=powerpc64le-unknown-unknown < %s | FileCheck %s
+
+; RUN: llc -verify-machineinstrs -O0 -mcpu=pwr9 \
+; RUN: -mtriple=powerpc64le-unknown-unknown < %s \
+; RUN: | FileCheck %s --check-prefix=CHECK-P9 --implicit-check-not xxswapd
+
+; RUN: llc -verify-machineinstrs -O0 -mcpu=pwr9 -mattr=-power9-vector \
+; RUN: -mtriple=powerpc64le-unknown-unknown < %s | FileCheck %s
+
; Function Attrs: nounwind
define void @test() {
entry:
@@ -17,6 +26,8 @@ entry:
; CHECK: lwa [[REG0:[0-9]+]],
; CHECK: lxvd2x [[REG1:[0-9]+]], {{[0-9]+}}, [[REG0]]
; CHECK: xxswapd [[REG1]], [[REG1]]
+; CHECK-P9: lwa [[REG0:[0-9]+]],
+; CHECK-P9: lxvx [[REG1:[0-9]+]], {{[0-9]+}}, [[REG0]]
store <4 x i32> %4, <4 x i32>* %j, align 16
ret void
}