fallback: legalize: G_AND <N x i128>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_AND <N x i128> M |
| Occurrences: | 3 in 3 configs, 3 test files, 6 more counted only |
| Snippet from: | smulh.122761fd37.ll (mutant of smulh.ll) @smulh_v2i128 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+m,+a -O0 -code-model=small -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define <2 x i128> @smulh_v2i128(<2 x i128> %x, <2 x i128> %y) #0 {
%A = alloca <2 x i128>, align 32
store <2 x i128> poison, ptr %A, align 32
%r = call <2 x i128> @llvm.smulh.v2i128(<2 x i128> %x, <2 x i128> %y)
%B = and <2 x i128> %r, %r
store <2 x i128> %B, ptr %A, align 32
ret <2 x i128> %r
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i128> @llvm.smulh.v2i128(<2 x i128>, <2 x i128>) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -mattr=+m,+a -O0 -code-model=small -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+m,+a -O0 -code-model=small -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %8:_(<2 x i128>) = G_AND %7:_, %7:_ (in function: smulh_v2i128)
warning: Instruction selection used fallback path for smulh_v2i128
Occurrences (3):
| Input | Function | Config |
|---|
| clmulh.c97b61c6b7.ll (mutant of clmulh.ll) | commutative_clmulh_v2i64 | -mtriple=riscv64 -verify-machineinstrs -O3 |
| smulh.122761fd37.ll (mutant of smulh.ll) | smulh_v2i128 | -mtriple=riscv32 -mattr=+m,+a -O0 -code-model=small -verify-machineinstrs |
| umulh.b4d55125ec.ll (mutant of umulh.ll) | umulh_v2i128 | -mtriple=riscv32 -mattr=+m,+v,+zba,+zvfh -O0 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.