fallback: legalize: G_CTLZ
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_CTLZ M |
| Occurrences: | 3 in 3 configs, 3 test files, 129 more counted only |
| Snippet from: | shifts.b836fa0bbb.ll (mutant of shifts.ll) @ashr128 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfa -O2 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define i128 @ashr128(i128 %a, i128 %b) #0 {
%1 = ashr i128 %a, %b
%B = udiv i128 %1, %1
store i128 %B, ptr poison, align 4
ret i128 %1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfa -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfa -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %1040:_(i32) = G_CTLZ %7:_(i128) (in function: ashr128)
warning: Instruction selection used fallback path for ashr128
Occurrences (3):
| Input | Function | Config |
|---|
| abdu.c614c45fcc.ll (mutant of abdu.ll) | abd_ext_i128_undef | -mtriple=riscv64 -mattr=+zfhmin,+zbb -O1 -verify-machineinstrs |
| shifts.b836fa0bbb.ll (mutant of shifts.ll) | ashr128 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfa -O2 |
| ssub_sat_plus.867fa54e3a.ll (mutant of ssub_sat_plus.ll) | func4 | -mtriple=riscv32 -mattr=+m,+zbb,+c,+zbs -O0 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.