fallback: translate: call llvm.roundeven.f64

Run:main-b577f07195-20261129-101839
Kind:fallback
Category:translate: call llvm.roundeven.f64
Occurrences:32 in 2 configs, 3 test files
Snippet from:double-round-conv.ll @test_roundeven_si8 via llvm-extract
Config:-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define signext i8 @test_roundeven_si8(double %x) {
  %a = call double @llvm.roundeven.f64(double %x)
  %b = fptosi double %a to i8
  ret i8 %b
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.roundeven.f64(double) #0

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.roundeven.f64: '  %a = call double @llvm.roundeven.f64(double %x)' (in function: test_roundeven_si8)
warning: Instruction selection used fallback path for test_roundeven_si8

Occurrences (32) (first 15):

InputFunctionConfig
double-intrinsics.llroundeven_f64-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-intrinsics.llroundeven_f64-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64
double-round-conv-sat.lltest_roundeven_si32-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-round-conv-sat.lltest_roundeven_si64-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-round-conv-sat.lltest_roundeven_ui32-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-round-conv-sat.lltest_roundeven_ui64-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-round-conv-sat.lltest_roundeven_si32-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64
double-round-conv-sat.lltest_roundeven_si64-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64
double-round-conv-sat.lltest_roundeven_ui32-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64
double-round-conv-sat.lltest_roundeven_ui64-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64
double-round-conv.lltest_roundeven_si8-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-round-conv.lltest_roundeven_si16-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-round-conv.lltest_roundeven_si32-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-round-conv.lltest_roundeven_si64-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-round-conv.lltest_roundeven_ui8-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32

Generated 2026-11-29 14:49 UTC.