fallback: translate: or i1

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: or i1 M
Occurrences:3 in 3 configs, 2 test files, 27 more counted only
Snippet from:half-intrinsics.d0ed468de4.ll (mutant of half-intrinsics.ll) @sin_f16 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx,+zdinx -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define half @sin_f16(half %a) #0 {
  %B = or i1 true, false
  %1 = call half @llvm.sin.f16(half %a)
  store i1 %B, ptr poison, align 1
  ret half %1
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: or: '  %B = or i1 true, false' (in function: sin_f16)
warning: Instruction selection used fallback path for sin_f16

Occurrences (3):

InputFunctionConfig
half-intrinsics.d0ed468de4.ll (mutant of half-intrinsics.ll)sin_f16-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx,+zdinx -O1
select-or.0de8e9528e.ll (mutant of select-or.ll)if_of_or-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O0
select-or.4612abe1dc.ll (mutant of select-or.ll)if_of_or-mtriple=riscv32 -verify-machineinstrs -mattr=+zcb,+zdinx -O0

Generated 2026-11-29 14:49 UTC.