xref: /llvm-project/llvm/test/Transforms/SCCP/vscale-gep.ll (revision 18423c7e1f9d973df697f7f3c1ad2a60be582aef)
1*18423c7eSRahul Anand Radhakrishnan; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2*18423c7eSRahul Anand Radhakrishnan; RUN: opt < %s -passes=sccp -S | FileCheck %s
3*18423c7eSRahul Anand Radhakrishnan
4*18423c7eSRahul Anand Radhakrishnandefine ptr @scalable_vector_getelementptr(i64 %x) {
5*18423c7eSRahul Anand Radhakrishnan; CHECK-LABEL: @scalable_vector_getelementptr(
6*18423c7eSRahul Anand Radhakrishnan; CHECK-NEXT:    [[PTR:%.*]] = getelementptr <vscale x 4 x i32>, ptr null, i64 1
7*18423c7eSRahul Anand Radhakrishnan; CHECK-NEXT:    ret ptr [[PTR]]
8*18423c7eSRahul Anand Radhakrishnan;
9*18423c7eSRahul Anand Radhakrishnan  %ptr = getelementptr <vscale x 4 x i32>, ptr null, i64 1
10*18423c7eSRahul Anand Radhakrishnan  ret ptr %ptr
11*18423c7eSRahul Anand Radhakrishnan}
12