fallback: translate: call llvm.vector.reduce.fmax.nxv1f32
| Run: | main-b577f07195-20261129-101839 |
| Kind: | fallback |
| Category: | translate: call llvm.vector.reduce.fmax.nxv1f32 M |
| Occurrences: | 2 in 2 configs, 1 test files |
| Snippet from: | vreductions-fp-sdnode.911dc405df.ll (mutant of vreductions-fp-sdnode.ll) @vreduce_fmax_nxv1f32 via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=lp64d -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global bfloat
@G.1 = external global bfloat
define float @vreduce_fmax_nxv1f32(<vscale x 1 x float> %v) {
%LGV1 = load bfloat, ptr @G.1, align 2
%LGV = load bfloat, ptr @G, align 2
%C = fcmp ule bfloat %LGV, %LGV1
%red = call float @llvm.vector.reduce.fmax.nxv1f32(<vscale x 1 x float> %v)
store i1 %C, ptr poison, align 1
ret float %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.vector.reduce.fmax.nxv1f32(<vscale x 1 x float>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=lp64d -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=lp64d -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.vector.reduce.fmax.nxv1f32: ' %red = call float @llvm.vector.reduce.fmax.nxv1f32(<vscale x 1 x float> %v)' (in function: vreduce_fmax_nxv1f32)
warning: Instruction selection used fallback path for vreduce_fmax_nxv1f32
Occurrences (2):
| Input | Function | Config |
|---|
| vreductions-fp-sdnode.911dc405df.ll (mutant of vreductions-fp-sdnode.ll) | vreduce_fmax_nxv1f32 | -mtriple=riscv64 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=lp64d -verify-machineinstrs |
| vreductions-fp-sdnode.dbabbce5bc.ll (mutant of vreductions-fp-sdnode.ll) | vreduce_fmax_nxv1f32 | -mtriple=riscv32 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=ilp32d -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.