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