| ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5 |
| ; RUN: opt -S -mtriple=riscv64 -mattr=+v %s -passes=vector-combine | FileCheck %s |
| ; RUN: opt -S -mtriple=riscv32 -mattr=+v %s -passes=vector-combine | FileCheck %s |
| ; RUN: opt -S -mtriple=riscv64 -mattr=+zve32x %s -passes=vector-combine | FileCheck %s --check-prefix=ZVE32X |
| |
| define void @interleave2_const_splat_nxv16i32(ptr %dst) { |
| ; CHECK-LABEL: define void @interleave2_const_splat_nxv16i32( |
| ; CHECK-SAME: ptr [[DST:%.*]]) #[[ATTR0:[0-9]+]] { |
| ; CHECK-NEXT: call void @llvm.vp.store.nxv16i32.p0(<vscale x 16 x i32> bitcast (<vscale x 8 x i64> splat (i64 3337189589658) to <vscale x 16 x i32>), ptr [[DST]], <vscale x 16 x i1> splat (i1 true), i32 88) |
| ; CHECK-NEXT: ret void |
| ; |
| ; ZVE32X-LABEL: define void @interleave2_const_splat_nxv16i32( |
| ; ZVE32X-SAME: ptr [[DST:%.*]]) #[[ATTR0:[0-9]+]] { |
| ; ZVE32X-NEXT: [[INTERLEAVE2:%.*]] = call <vscale x 16 x i32> @llvm.vector.interleave2.nxv16i32(<vscale x 8 x i32> splat (i32 666), <vscale x 8 x i32> splat (i32 777)) |
| ; ZVE32X-NEXT: call void @llvm.vp.store.nxv16i32.p0(<vscale x 16 x i32> [[INTERLEAVE2]], ptr [[DST]], <vscale x 16 x i1> splat (i1 true), i32 88) |
| ; ZVE32X-NEXT: ret void |
| ; |
| %interleave2 = call <vscale x 16 x i32> @llvm.vector.interleave2.nxv16i32(<vscale x 8 x i32> splat (i32 666), <vscale x 8 x i32> splat (i32 777)) |
| call void @llvm.vp.store.nxv16i32.p0(<vscale x 16 x i32> %interleave2, ptr %dst, <vscale x 16 x i1> splat (i1 true), i32 88) |
| ret void |
| } |