fallback: legalize: G_FDIV s128

Run:main-04ca53e65f-20261014-105623
Kind:fallback
Category:legalize: G_FDIV s128 NEW
Occurrences:1 in 1 configs, 1 test files
Snippet from:legalize-fneg.e5a8c5c8cc.ll (mutant of legalize-fneg.ll) @test3 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs
Local check:reproduces at 04ca53e65f
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i128

; Function Attrs: nounwind
define void @test3(ptr %a, ptr %b) #0 {
entry:
  %LGV = load i128, ptr @G.2, align 4
  %0 = load fp128, ptr %b, align 16
  %B = fdiv fp128 %0, f0x7FFEFFFFFFFFFFFFFFFFFFFFFFFFFFFF
  %C = icmp ult i128 18446744073709551616, %LGV
  store fp128 %B, ptr %a, align 16
  store i1 %C, ptr poison, align 1
  ret void
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %6:_(s128) = G_FDIV %4:_, %5:_ (in function: test3)
warning: Instruction selection used fallback path for test3

Occurrences (1):

InputFunctionConfig
legalize-fneg.e5a8c5c8cc.ll (mutant of legalize-fneg.ll)test3-mtriple=riscv32 -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.