1 ; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 ; RUN: llc < %s -mtriple=riscv64 -mattr=+v -stop-after=finalize-isel | FileCheck %s
4 declare <vscale x 1 x double> @llvm.vp.fmul.nxv1f64(<vscale x 1 x double> %x, <vscale x 1 x double> %y, <vscale x 1 x i1> %m, i32 %vl)
6 define <vscale x 1 x double> @foo(<vscale x 1 x double> %x, <vscale x 1 x double> %y, <vscale x 1 x double> %z, <vscale x 1 x i1> %m, i32 %vl) {
7 ; CHECK-LABEL: name: foo
8 ; CHECK: bb.0 (%ir-block.0):
9 ; CHECK-NEXT: liveins: $v8, $v9, $v0, $x10
11 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr = COPY $x10
12 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vr = COPY $v0
13 ; CHECK-NEXT: [[COPY2:%[0-9]+]]:vr = COPY $v9
14 ; CHECK-NEXT: [[COPY3:%[0-9]+]]:vr = COPY $v8
15 ; CHECK-NEXT: [[SLLI:%[0-9]+]]:gpr = SLLI [[COPY]], 32
16 ; CHECK-NEXT: [[SRLI:%[0-9]+]]:gprnox0 = SRLI killed [[SLLI]], 32
17 ; CHECK-NEXT: $v0 = COPY [[COPY1]]
18 ; CHECK-NEXT: [[PseudoVFMUL_VV_M1_E64_MASK:%[0-9]+]]:vrnov0 = nnan ninf nsz arcp contract afn reassoc nofpexcept PseudoVFMUL_VV_M1_E64_MASK $noreg, [[COPY3]], [[COPY2]], $v0, 7, killed [[SRLI]], 6 /* e64 */, 1 /* ta, mu */, implicit $frm
19 ; CHECK-NEXT: $v8 = COPY [[PseudoVFMUL_VV_M1_E64_MASK]]
20 ; CHECK-NEXT: PseudoRET implicit $v8
21 %1 = call fast <vscale x 1 x double> @llvm.vp.fmul.nxv1f64(<vscale x 1 x double> %x, <vscale x 1 x double> %y, <vscale x 1 x i1> %m, i32 %vl)
22 ret <vscale x 1 x double> %1