diff options
author | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2016-11-22 19:02:07 +0000 |
---|---|---|
committer | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2016-11-22 19:02:07 +0000 |
commit | b8e30d6db638e5f1bb14fc76cd68262eb7b16e24 (patch) | |
tree | 981074d2ac5ce9819c2e10d0548039b1219e93ae /llvm/test/CodeGen/PowerPC/vsx-ldst.ll | |
parent | d1aed9a9e6f4f8dd38d31148272b76db24941071 (diff) | |
download | bcm5719-llvm-b8e30d6db638e5f1bb14fc76cd68262eb7b16e24.tar.gz bcm5719-llvm-b8e30d6db638e5f1bb14fc76cd68262eb7b16e24.zip |
[PowerPC] Emit VMX loads/stores for aligned ops to avoid adding swaps on LE
This patch corresponds to review:
https://reviews.llvm.org/D26861
It also fixes PR30730.
Committing on behalf of Lei Huang.
llvm-svn: 287679
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/vsx-ldst.ll')
-rw-r--r-- | llvm/test/CodeGen/PowerPC/vsx-ldst.ll | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/PowerPC/vsx-ldst.ll b/llvm/test/CodeGen/PowerPC/vsx-ldst.ll index a146182de99..d8dd635aab5 100644 --- a/llvm/test/CodeGen/PowerPC/vsx-ldst.ll +++ b/llvm/test/CodeGen/PowerPC/vsx-ldst.ll @@ -14,8 +14,10 @@ ; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mattr=+vsx -O2 \ ; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s > %t -; RUN: grep lxvd2x < %t | count 6 -; RUN: grep stxvd2x < %t | count 6 +; RUN: grep lxvd2x < %t | count 3 +; RUN: grep lvx < %t | count 3 +; RUN: grep stxvd2x < %t | count 3 +; RUN: grep stvx < %t | count 3 ; RUN: llc -verify-machineinstrs -mcpu=pwr9 -O2 \ ; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s > %t |