[PATCH] D89195: [PowerPC][Power10] Exploit store rightmost vector element instructions.
Amy Kwan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 15 13:40:34 PST 2020
amyk requested changes to this revision.
amyk added a comment.
This revision now requires changes to proceed.
Please address the comments regarding the test cases.
================
Comment at: llvm/test/CodeGen/PowerPC/builtins-ppc-p10vsx.ll:1
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
----------------
lei wrote:
> There's some redundancies here:
> 1. The default CHECK are not used in any of the run lines, but are updated in some cases.
> 2. The newly generated CHECK-LE and CHECK-BE are at times exact duplicate of each other and of the default CHECK.
>
> Suggest to update thus so it's more clear what the changes are:
> ```
> 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-prefix=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-prefix=CHECK,BE
> ```
> For cases where there is a differnce in LE and BE behaviour, remove the default CHECK and add new. Otherwise just leave the original default CHECKs.
I also agree with Lei's comment. We should add check prefixes and remove/add the CHECKs when its necessary.
================
Comment at: llvm/test/CodeGen/PowerPC/store-rightmost-vector-elt.ll:4
+; RUN: -mcpu=pwr10 -ppc-vsr-nums-as-vr -ppc-asm-full-reg-names \
+; RUN: < %s | FileCheck %s
+
----------------
lei wrote:
> run line for BE?
Agree we should have a run line for BE.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89195/new/
https://reviews.llvm.org/D89195
More information about the llvm-commits
mailing list