fallback: translate: call llvm.floor.f16

Run:main-b577f07195-20261129-101839
Kind:fallback
Category:translate: call llvm.floor.f16
Occurrences:70 in 12 configs, 4 test files
Snippet from:half-round-conv.ll @test_floor_si8 via llvm-extract
Config:-mtriple=riscv32 -mattr=+zhinx -verify-machineinstrs -target-abi=ilp32
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define signext i8 @test_floor_si8(half %x) {
  %a = call half @llvm.floor.f16(half %x)
  %b = fptosi half %a to i8
  ret i8 %b
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare half @llvm.floor.f16(half) #0

attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

llc -mtriple=riscv32 -mattr=+zhinx -verify-machineinstrs -target-abi=ilp32 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zhinx -verify-machineinstrs -target-abi=ilp32 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.floor.f16: '  %a = call half @llvm.floor.f16(half %x)' (in function: test_floor_si8)
warning: Instruction selection used fallback path for test_floor_si8

Occurrences (70) (first 15):

InputFunctionConfig
fround-optsize.llfloor_f16_optsize-mtriple=riscv32 -mattr=+zhinx -verify-machineinstrs -target-abi=ilp32
fround-optsize.llfloor_f16_optsize-mtriple=riscv64 -mattr=+zhinx -verify-machineinstrs -target-abi=lp64
half-intrinsics.llfloor_f16-mtriple=riscv32 -mattr=+zdinx -mattr=+zhinx -verify-machineinstrs -target-abi ilp32
half-intrinsics.llfloor_f16-mtriple=riscv32 -mattr=+zdinx -mattr=+zhinxmin -verify-machineinstrs -target-abi ilp32
half-intrinsics.llfloor_f16-mtriple=riscv32 -mattr=+zhinx -verify-machineinstrs -target-abi ilp32
half-intrinsics.llfloor_f16-mtriple=riscv32 -mattr=+zhinxmin -verify-machineinstrs -target-abi ilp32
half-intrinsics.llfloor_f16-mtriple=riscv64 -mattr=+zdinx -mattr=+zhinx -verify-machineinstrs -target-abi lp64
half-intrinsics.llfloor_f16-mtriple=riscv64 -mattr=+zdinx -mattr=+zhinxmin -verify-machineinstrs -target-abi lp64
half-intrinsics.llfloor_f16-mtriple=riscv64 -mattr=+zhinx -verify-machineinstrs -target-abi lp64
half-intrinsics.llfloor_f16-mtriple=riscv64 -mattr=+zhinxmin -verify-machineinstrs -target-abi lp64
half-round-conv-sat.lltest_floor_si32-mtriple=riscv32 -mattr=+zhinx -verify-machineinstrs -target-abi=ilp32
half-round-conv-sat.lltest_floor_si64-mtriple=riscv32 -mattr=+zhinx -verify-machineinstrs -target-abi=ilp32
half-round-conv-sat.lltest_floor_ui32-mtriple=riscv32 -mattr=+zhinx -verify-machineinstrs -target-abi=ilp32
half-round-conv-sat.lltest_floor_ui64-mtriple=riscv32 -mattr=+zhinx -verify-machineinstrs -target-abi=ilp32
half-round-conv-sat.lltest_floor_si32-mtriple=riscv32 -mattr=+zhinxmin -verify-machineinstrs -target-abi=ilp32

Generated 2026-11-29 14:49 UTC.