; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
; RUN: opt -S -passes=newgvn < %s | FileCheck %s
define ptr @test1(ptr %a) {
; CHECK-LABEL: define ptr @test1(
; CHECK-SAME: ptr [[A:%.*]]) {
; CHECK-NEXT: [[X2:%.*]] = getelementptr i32, ptr [[A]], i32 10
; CHECK-NEXT: ret ptr [[X2]]
;
%x1 = getelementptr inbounds i32, ptr %a, i32 10
%x2 = getelementptr i32, ptr %a, i32 10
ret ptr %x2
}