[PowerPC 4/4] Enable little-endian support for VSX.

With the foregoing three patches, VSX instructions can be used for
little endian.  This patch removes the restriction that prevented
this, and re-enables the test cases from the first three patches.





git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223792 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Schmidt
2014-12-09 16:59:57 +00:00
parent 9a2a305ed4
commit 44603b67b1
5 changed files with 10 additions and 36 deletions

View File

@@ -9,13 +9,10 @@
; RUN: grep stxvw4x < %t | count 3
; RUN: grep stxvd2x < %t | count 3
;; Note: The LE test variant is disabled until LE support for VSX is enabled,
;; as otherwise we fail to get the expected counts.
; R;UN: llc -mcpu=pwr8 -mattr=+vsx -O2 -mtriple=powerpc64le-unknown-linux-gnu < %s > %t
; R;UN: grep lxvd2x < %t | count 6
; R;UN: grep stxvd2x < %t | count 6
; R;UN: grep xxpermdi < %t | count 12
; RUN: llc -mcpu=pwr8 -mattr=+vsx -O2 -mtriple=powerpc64le-unknown-linux-gnu < %s > %t
; RUN: grep lxvd2x < %t | count 6
; RUN: grep stxvd2x < %t | count 6
; RUN: grep xxpermdi < %t | count 12
@vsi = global <4 x i32> <i32 -1, i32 2, i32 -3, i32 4>, align 16
@vui = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16