summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-05-25 04:05:05 +0000
committerHal Finkel <hfinkel@anl.gov>2013-05-25 04:05:05 +0000
commit5a0e60425f4f942afb7e901b401a130da48a4d21 (patch)
tree8007d3ad4c6d91c3097e34c1054f39a24babff27 /test/CodeGen
parent81349a74352d5f2ccd527cf3389b7a1055e57a1d (diff)
downloadllvm-5a0e60425f4f942afb7e901b401a130da48a4d21.tar.gz
llvm-5a0e60425f4f942afb7e901b401a130da48a4d21.tar.bz2
llvm-5a0e60425f4f942afb7e901b401a130da48a4d21.tar.xz
PPC: Combine duplicate (offset) lvsl Altivec intrinsics
The lvsl permutation control instruction is a function only of the alignment of the pointer operand (relative to the 16-byte natural alignment of Altivec vectors). As a result, multiple lvsl intrinsics where the operands differ by a multiple of 16 can be combined. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182708 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/PowerPC/unal-altivec.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/unal-altivec.ll b/test/CodeGen/PowerPC/unal-altivec.ll
index f89f299e14..dec93ebf76 100644
--- a/test/CodeGen/PowerPC/unal-altivec.ll
+++ b/test/CodeGen/PowerPC/unal-altivec.ll
@@ -1,4 +1,5 @@
; RUN: llc < %s -mcpu=g5 | FileCheck %s
+; RUN: llc < %s -mcpu=g5 | FileCheck %s -check-prefix=CHECK-PC
target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
target triple = "powerpc64-unknown-linux-gnu"
@@ -38,6 +39,11 @@ vector.body: ; preds = %vector.body, %vecto
; CHECK: vaddfp {{[0-9]+}}, [[R1]], [[CNST]]
; CHECK: blr
+; CHECK-PC: @foo
+; CHECK-PC: lvsl
+; CHECK-PC-NOT: lvsl
+; CHECK-PC: blr
+
for.end: ; preds = %vector.body
ret void
}