[PATCH] D34009: [Power9] Exploit vector integer extend instructions when indices aren't correct

Zaara Syeda via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 12 15:44:33 PDT 2017


syzaara added inline comments.


================
Comment at: test/CodeGen/PowerPC/vec_int_ext.ll:4
+; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-gnu-linux -mcpu=pwr9 < %s | FileCheck %s -check-prefix=CHECK-BE
+
+define <4 x i32> @vextsb2wLE(<16 x i8> %a) {
----------------
nemanjai wrote:
> Please add a test that checks that there are no shuffles when the input elements are correct.
Each of these tests is already checking both correct and incorrect elements. The *LE tests are using correct elements for LE and so the BE pattern match should have the shuffle. The *BE tests are using correct elements for BE and so the LE pattern match should have the shuffle.


https://reviews.llvm.org/D34009





More information about the llvm-commits mailing list