[PATCH] D47332: [PowerPC] Exploit the vector min/max instructions

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 14 00:41:35 PST 2018


RKSimon added a comment.

This covers PR39130 right?

Maybe worth adding the new vec-min-max.ll test file to trunk with current codegen so this patch shows the improved codegen diff?



================
Comment at: test/CodeGen/PowerPC/vec-min-max.ll:5
+; RUN: llc < %s -mtriple=powerpc64le-unknown-unknown -mcpu=pwr7 \
+; RUN:   -verify-machineinstrs | FileCheck %s --check-prefix=NOP8VEC
+define <16 x i8> @getsmaxi8(<16 x i8> %a, <16 x i8> %b) {
----------------
You might be better using common prefixes to share (and reduce) checks.

--check-prefixes=CHECK,P8VEC
--check-prefixes=CHECK,NOP8VEC


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D47332/new/

https://reviews.llvm.org/D47332





More information about the llvm-commits mailing list