summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/gep-vector.ll
blob: ce021bf207fce5873afe0a9a69db438b78ab12a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: opt -instcombine %s -S | FileCheck %s

; CHECK-LABEL: patatino
; CHECK-NEXT: ret <8 x i64*> undef
define <8 x i64*> @patatino() {
  %el = getelementptr i64, <8 x i64*> undef, <8 x i64> undef
  ret <8 x i64*> %el
}

; CHECK-LABEL: patatino2
; CHECK-NEXT: ret <8 x i64*> undef
define <8 x i64*> @patatino2() {
  %el = getelementptr inbounds i64, i64* undef, <8 x i64> undef
  ret <8 x i64*> %el
}
OpenPOWER on IntegriCloud