1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
2 ; RUN: opt -S --passes=slp-vectorizer -mtriple=x86_64-unknown-linux-gnu -mattr=+avx512dq -slp-threshold=-99999 < %s | FileCheck %s
4 define i32 @test(i32 %arg, i32 %arg1) {
5 ; CHECK-LABEL: define i32 @test(
6 ; CHECK-SAME: i32 [[ARG:%.*]], i32 [[ARG1:%.*]]) #[[ATTR0:[0-9]+]] {
7 ; CHECK-NEXT: [[BB:.*:]]
8 ; CHECK-NEXT: [[ZEXT:%.*]] = zext i32 [[ARG1]] to i64
9 ; CHECK-NEXT: [[ZEXT2:%.*]] = zext i32 [[ARG]] to i64
10 ; CHECK-NEXT: [[SEXT:%.*]] = sext i32 [[ARG]] to i64
11 ; CHECK-NEXT: br label %[[BB3:.*]]
13 ; CHECK-NEXT: [[GETELEMENTPTR:%.*]] = getelementptr i64, ptr addrspace(1) null, i64 [[ZEXT]]
14 ; CHECK-NEXT: [[GETELEMENTPTR4:%.*]] = getelementptr i64, ptr addrspace(1) null, i64 [[ZEXT2]]
15 ; CHECK-NEXT: [[GETELEMENTPTR5:%.*]] = getelementptr i64, ptr addrspace(1) null, i64 [[SEXT]]
16 ; CHECK-NEXT: [[ZEXT6:%.*]] = zext i32 0 to i64
17 ; CHECK-NEXT: [[GETELEMENTPTR7:%.*]] = getelementptr i64, ptr addrspace(1) null, i64 [[ZEXT6]]
18 ; CHECK-NEXT: ret i32 0
21 %zext = zext i32 %arg1 to i64
22 %zext2 = zext i32 %arg to i64
23 %sext = sext i32 %arg to i64
27 %getelementptr = getelementptr i64, ptr addrspace(1) null, i64 %zext
28 %getelementptr4 = getelementptr i64, ptr addrspace(1) null, i64 %zext2
29 %getelementptr5 = getelementptr i64, ptr addrspace(1) null, i64 %sext
30 %zext6 = zext i32 0 to i64
31 %getelementptr7 = getelementptr i64, ptr addrspace(1) null, i64 %zext6