Skip to content

Commit

Permalink
Vector GEP test: renamed + some comments
Browse files Browse the repository at this point in the history
Differential revision: http://reviews.llvm.org/D21957

llvm-svn: 274611
  • Loading branch information
Elena Demikhovsky committed Jul 6, 2016
1 parent c487614 commit 971fbfd
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
;RUN: opt < %s -slp-vectorizer -S
;RUN: opt < %s -slp-vectorizer -S | FileCheck %s

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; This test checks that SLP vectorizer does not fail on vector GEP.
; The GEP has scalar and vector parameters and returns vector of pointers.

; Function Attrs: noreturn readonly uwtable
define void @_Z3fn1v(i32 %x, <16 x i32*>%y) local_unnamed_addr #0 {
; CHECK-LABEL: _Z3fn1v
; CHECK: getelementptr i32, <16 x i32*>
; CHECK: getelementptr i32, <16 x i32*>

entry:
%conv42.le = sext i32 %x to i64
%conv36109.le = zext i32 2 to i64
Expand Down

0 comments on commit 971fbfd

Please sign in to comment.