fallback: legalize: G_MUL <4 x s32>
| Run: | explore-04ca53e65f-20261014-114124 |
| Kind: | fallback |
| Category: | legalize: G_MUL <4 x s32> NEW |
| Occurrences: | 2 in 2 configs, 1 test files |
| Snippet from: | double_reduct.99f0dfee30.ll (mutant of double_reduct.ll) @and_i32 via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=lp64d -verify-machineinstrs |
| Local check: | reproduces at 04ca53e65f |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.3 = external global <4 x i32>
define i32 @and_i32(<4 x i32> %a, <4 x i32> %b) {
%r1 = call i32 @llvm.vector.reduce.and.v4i32(<4 x i32> %a)
%r2 = call i32 @llvm.vector.reduce.and.v4i32(<4 x i32> %b)
%r = and i32 %r1, %r2
%B = mul <4 x i32> %b, %b
store <4 x i32> %B, ptr @G.3, align 16
ret i32 %r
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.and.v4i32(<4 x i32>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=lp64d -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=lp64d -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %7:_(<4 x s32>) = G_MUL %1:_, %1:_ (in function: and_i32)
warning: Instruction selection used fallback path for and_i32
Occurrences (2):
| Input | Function | Config |
|---|
| double_reduct.99f0dfee30.ll (mutant of double_reduct.ll) | and_i32 | -mtriple=riscv64 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=lp64d -verify-machineinstrs |
| double_reduct.e90c0d89de.ll (mutant of double_reduct.ll) | and_i32 | -mtriple=riscv32 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=ilp32d -verify-machineinstrs |
Generated 2026-10-15 08:05 UTC.