fallback: legalize: G_BSWAP <N x i64>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_BSWAP <N x i64> M |
| Occurrences: | 3 in 3 configs, 1 test files, 5 more counted only |
| Snippet from: | fixed-vectors-bswap.272d94d88f.ll (mutant of fixed-vectors-bswap.ll) @bswap_v4i64 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvkb,+zbkb,+m -O0 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define void @bswap_v4i64(ptr %x, ptr %y) {
%G = getelementptr i16, ptr %y, i32 1
%a = load <4 x i64>, ptr %x, align 32
%B = srem i32 65536, 0
%c = call <4 x i64> @llvm.bswap.v4i64(<4 x i64> %a)
store <4 x i64> %c, ptr %G, align 32
store i32 %B, ptr poison, align 4
ret void
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i64> @llvm.bswap.v4i64(<4 x i64>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvkb,+zbkb,+m -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvkb,+zbkb,+m -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %8:_(<4 x i64>) = G_BSWAP %4:_ (in function: bswap_v4i64)
warning: Instruction selection used fallback path for bswap_v4i64
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-bswap.272d94d88f.ll (mutant of fixed-vectors-bswap.ll) | bswap_v4i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvkb,+zbkb,+m -O0 |
| fixed-vectors-bswap.a8869bd94b.ll (mutant of fixed-vectors-bswap.ll) | bswap_v2i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvkb,+zbkb -O2 |
| fixed-vectors-bswap.c94cc33f51.ll (mutant of fixed-vectors-bswap.ll) | bswap_v2i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvkb,+zbb -O0 |
Generated 2026-11-29 14:49 UTC.