llvm/llvm/test/Transforms/SCCP/vscale-gep.ll

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -passes=sccp -S | FileCheck %s

define ptr @scalable_vector_getelementptr(i64 %x) {
; CHECK-LABEL: @scalable_vector_getelementptr(
; CHECK-NEXT:    [[PTR:%.*]] = getelementptr <vscale x 4 x i32>, ptr null, i64 1
; CHECK-NEXT:    ret ptr [[PTR]]
;
  %ptr = getelementptr <vscale x 4 x i32>, ptr null, i64 1
  ret ptr %ptr
}