1; RUN: opt -early-cse -earlycse-debug-hash -S < %s | FileCheck %s 2 3target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" 4target triple = "aarch64" 5 6; CHECK-LABEL: define <4 x i32*> @fixed_length_version_first() { 7; CHECK-NEXT: ret <4 x i32*> undef 8define <4 x i32*> @fixed_length_version_first() { 9 %ptr = getelementptr i32, <4 x i32*> undef, <4 x i64> undef 10 ret <4 x i32*> %ptr 11} 12 13; CHECK-LABEL: define <4 x <4 x i32>*> @fixed_length_version_second() { 14; CHECK-NEXT: ret <4 x <4 x i32>*> undef 15define <4 x <4 x i32>*> @fixed_length_version_second() { 16 %ptr = getelementptr <4 x i32>, <4 x i32>* undef, <4 x i64> undef 17 ret <4 x <4 x i32>*> %ptr 18} 19 20; CHECK-LABEL: define <vscale x 4 x i32*> @vscale_version_first() { 21; CHECK-NEXT: ret <vscale x 4 x i32*> undef 22define <vscale x 4 x i32*> @vscale_version_first() { 23 %ptr = getelementptr i32, <vscale x 4 x i32*> undef, <vscale x 4 x i64> undef 24 ret <vscale x 4 x i32*> %ptr 25} 26 27; CHECK-LABEL: define <vscale x 4 x <vscale x 4 x i32>*> @vscale_version_second() { 28; CHECK-NEXT: ret <vscale x 4 x <vscale x 4 x i32>*> undef 29define <vscale x 4 x <vscale x 4 x i32>*> @vscale_version_second() { 30 %ptr = getelementptr <vscale x 4 x i32>, <vscale x 4 x i32>* undef, <vscale x 4 x i64> undef 31 ret <vscale x 4 x <vscale x 4 x i32>*> %ptr 32} 33