diff options
author | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2017-05-02 01:47:34 +0000 |
---|---|---|
committer | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2017-05-02 01:47:34 +0000 |
commit | b89c27f5150e104b8aed1b866456e2e4dc2296a3 (patch) | |
tree | eeebf6567b391a6c0cc78c8ae0111429f84c1237 /llvm/test/CodeGen/PowerPC/vsx-ldst.ll | |
parent | c190f96b7dbd1c3462a3cf7bd5faa6fb9866424d (diff) | |
download | bcm5719-llvm-b89c27f5150e104b8aed1b866456e2e4dc2296a3.tar.gz bcm5719-llvm-b89c27f5150e104b8aed1b866456e2e4dc2296a3.zip |
[PowerPC] Emit VMX loads/stores for aligned ops to avoid adding swaps on LE
Fixes PR30730.
This is a re-commit of a pulled commit. The commit was pulled because some
software projects contained uses of Altivec vectors that violated alignment
requirements. Known issues have now been fixed.
Committing on behalf of Lei Huang.
Differential Revision: https://reviews.llvm.org/D26861
llvm-svn: 301892
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 |