1 ; RUN: opt -S < %s | FileCheck %s
2 ; RUN: llvm-as %s -o - | llvm-dis | FileCheck %s
4 define <4 x i32> @stepvector_fixed() {
5 ; CHECK-LABEL: @stepvector_fixed
6 ; CHECK: %res = call <4 x i32> @llvm.stepvector.v4i32()
8 %res = call <4 x i32> @llvm.experimental.stepvector.v4i32()
12 define <vscale x 4 x i32> @stepvector_scalable() {
13 ; CHECK-LABEL: @stepvector_scalable
14 ; CHECK: %res = call <vscale x 4 x i32> @llvm.stepvector.nxv4i32()
16 %res = call <vscale x 4 x i32> @llvm.experimental.stepvector.nxv4i32()
17 ret <vscale x 4 x i32> %res
21 declare <4 x i32> @llvm.experimental.stepvector.v4i32()
22 ; CHECK: <4 x i32> @llvm.stepvector.v4i32()
24 declare <vscale x 4 x i32> @llvm.experimental.stepvector.nxv4i32()
25 ; CHECK: <vscale x 4 x i32> @llvm.stepvector.nxv4i32()