[llvm-branch-commits] [llvm] 4a8b5e9 - [PowerPC] Regenerate p10-vector-rotate.ll
Simon Pilgrim via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Dec 4 07:38:07 PST 2020
Author: Simon Pilgrim
Date: 2020-12-04T15:33:01Z
New Revision: 4a8b5e9896232f34c8cc062a85e1c241f493cdef
URL: https://github.com/llvm/llvm-project/commit/4a8b5e9896232f34c8cc062a85e1c241f493cdef
DIFF: https://github.com/llvm/llvm-project/commit/4a8b5e9896232f34c8cc062a85e1c241f493cdef.diff
LOG: [PowerPC] Regenerate p10-vector-rotate.ll
Reorder check-prefixes to stop update_llc_test_checks.py complaining
Added:
Modified:
llvm/test/CodeGen/PowerPC/p10-vector-rotate.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/PowerPC/p10-vector-rotate.ll b/llvm/test/CodeGen/PowerPC/p10-vector-rotate.ll
index 477f723f5c9d..56b32e2c73fa 100644
--- a/llvm/test/CodeGen/PowerPC/p10-vector-rotate.ll
+++ b/llvm/test/CodeGen/PowerPC/p10-vector-rotate.ll
@@ -1,11 +1,11 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
; RUN: -mcpu=pwr10 -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr < %s | \
-; RUN: FileCheck %s -check-prefixes=CHECK-LE,CHECK
+; RUN: FileCheck %s -check-prefixes=CHECK,CHECK-LE
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \
; RUN: -mcpu=pwr10 -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr < %s | \
-; RUN: FileCheck %s -check-prefixes=CHECK-BE,CHECK
+; RUN: FileCheck %s -check-prefixes=CHECK,CHECK-BE
; This test case aims to test the builtins for vector rotate instructions
; on Power10.
@@ -24,10 +24,19 @@ define <1 x i128> @test_vrlq(<1 x i128> %x, <1 x i128> %y) {
}
define <1 x i128> @test_vrlq_cost_mult8(<1 x i128> %x) {
-; CHECK-LABEL: test_vrlq_cost_mult8:
-; CHECK: # %bb.0:
-; CHECK: vrlq v2, v3, v2
-; CHECK-NEXT: blr
+; CHECK-LE-LABEL: test_vrlq_cost_mult8:
+; CHECK-LE: # %bb.0:
+; CHECK-LE-NEXT: plxv v3, .LCPI1_0 at PCREL(0), 1
+; CHECK-LE-NEXT: vrlq v2, v3, v2
+; CHECK-LE-NEXT: blr
+;
+; CHECK-BE-LABEL: test_vrlq_cost_mult8:
+; CHECK-BE: # %bb.0:
+; CHECK-BE-NEXT: addis r3, r2, .LCPI1_0 at toc@ha
+; CHECK-BE-NEXT: addi r3, r3, .LCPI1_0 at toc@l
+; CHECK-BE-NEXT: lxvx v3, 0, r3
+; CHECK-BE-NEXT: vrlq v2, v3, v2
+; CHECK-BE-NEXT: blr
%shl.i = shl <1 x i128> <i128 16>, %x
%sub.i = sub <1 x i128> <i128 128>, %x
%lshr.i = lshr <1 x i128> <i128 16>, %sub.i
@@ -36,10 +45,19 @@ define <1 x i128> @test_vrlq_cost_mult8(<1 x i128> %x) {
}
define <1 x i128> @test_vrlq_cost_non_mult8(<1 x i128> %x) {
-; CHECK-LABEL: test_vrlq_cost_non_mult8:
-; CHECK: # %bb.0:
-; CHECK: vrlq v2, v3, v2
-; CHECK-NEXT: blr
+; CHECK-LE-LABEL: test_vrlq_cost_non_mult8:
+; CHECK-LE: # %bb.0:
+; CHECK-LE-NEXT: plxv v3, .LCPI2_0 at PCREL(0), 1
+; CHECK-LE-NEXT: vrlq v2, v3, v2
+; CHECK-LE-NEXT: blr
+;
+; CHECK-BE-LABEL: test_vrlq_cost_non_mult8:
+; CHECK-BE: # %bb.0:
+; CHECK-BE-NEXT: addis r3, r2, .LCPI2_0 at toc@ha
+; CHECK-BE-NEXT: addi r3, r3, .LCPI2_0 at toc@l
+; CHECK-BE-NEXT: lxvx v3, 0, r3
+; CHECK-BE-NEXT: vrlq v2, v3, v2
+; CHECK-BE-NEXT: blr
%shl.i = shl <1 x i128> <i128 4>, %x
%sub.i = sub <1 x i128> <i128 128>, %x
%lshr.i = lshr <1 x i128> <i128 4>, %sub.i
@@ -61,14 +79,21 @@ entry:
; Function Attrs: nounwind readnone
define <1 x i128> @test_vrlqnm(<1 x i128> %a, <1 x i128> %b, <1 x i128> %c) {
-; CHECK-LABEL: test_vrlqnm:
-; CHECK: # %bb.0: # %entry
-; CHECK-BE: lxvx v5
-; CHECK-BE-NEXT: vperm v3, v3, v4, v5
-; CHECK-LE-NEXT: plxv v5
+; CHECK-LE-LABEL: test_vrlqnm:
+; CHECK-LE: # %bb.0: # %entry
+; CHECK-LE-NEXT: plxv v5, .LCPI4_0 at PCREL(0), 1
; CHECK-LE-NEXT: vperm v3, v4, v3, v5
-; CHECK-NEXT: vrlqnm v2, v2, v3
-; CHECK-NEXT: blr
+; CHECK-LE-NEXT: vrlqnm v2, v2, v3
+; CHECK-LE-NEXT: blr
+;
+; CHECK-BE-LABEL: test_vrlqnm:
+; CHECK-BE: # %bb.0: # %entry
+; CHECK-BE-NEXT: addis r3, r2, .LCPI4_0 at toc@ha
+; CHECK-BE-NEXT: addi r3, r3, .LCPI4_0 at toc@l
+; CHECK-BE-NEXT: lxvx v5, 0, r3
+; CHECK-BE-NEXT: vperm v3, v3, v4, v5
+; CHECK-BE-NEXT: vrlqnm v2, v2, v3
+; CHECK-BE-NEXT: blr
entry:
%0 = bitcast <1 x i128> %b to <16 x i8>
%1 = bitcast <1 x i128> %c to <16 x i8>
More information about the llvm-branch-commits
mailing list