fallback: legalize: G_OR <4 x s8>
| Run: | explore-04ca53e65f-20261014-114124 |
| Kind: | fallback |
| Category: | legalize: G_OR <4 x s8> NEW |
| Occurrences: | 1 in 1 configs, 1 test files |
| Snippet from: | rvp-bitreverse-zbkb.fe97f4bd81.ll (mutant of rvp-bitreverse-zbkb.ll) @test_bitreverse_v4i8 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+experimental-p,+m,+zbb,+zbkb -verify-machineinstrs |
| Local check: | reproduces at 04ca53e65f |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i64
@G.1 = external global i64
define <4 x i8> @test_bitreverse_v4i8(<4 x i8> %a) {
%LGV1 = load i64, ptr @G.1, align 4
%LGV = load i64, ptr @G, align 4
%B = urem i64 %LGV, %LGV1
%res = call <4 x i8> @llvm.bitreverse.v4i8(<4 x i8> %a)
store i64 %B, ptr @G, align 4
%C = icmp eq i16 1, 0
store i1 %C, ptr poison, align 1
ret <4 x i8> %res
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i8> @llvm.bitreverse.v4i8(<4 x i8>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -mattr=+experimental-p,+m,+zbb,+zbkb -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+experimental-p,+m,+zbb,+zbkb -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %6:_(<4 x s8>) = G_OR %47:_, %49:_ (in function: test_bitreverse_v4i8)
warning: Instruction selection used fallback path for test_bitreverse_v4i8
Occurrences (1):
| Input | Function | Config |
|---|
| rvp-bitreverse-zbkb.fe97f4bd81.ll (mutant of rvp-bitreverse-zbkb.ll) | test_bitreverse_v4i8 | -mtriple=riscv32 -mattr=+experimental-p,+m,+zbb,+zbkb -verify-machineinstrs |
Generated 2026-10-15 08:05 UTC.