fallback: translate: bitcast <N x i1>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: bitcast <N x i1> M |
| Occurrences: | 3 in 2 configs, 2 test files, 8 more counted only |
| Snippet from: | combine-ctpop-to-vcpop.0885627021.ll (mutant of combine-ctpop-to-vcpop.ll) @test_trunc_v128i1 via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+zbb,+zhinx -O1 -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global i64
define i32 @test_trunc_v128i1(<128 x i1> %x) {
entry:
%a = bitcast <128 x i1> %x to i128
%b = call i128 @llvm.ctpop.i128(i128 %a)
%B = xor i64 4294967296, 0
%c = trunc i128 %b to i32
store i64 %B, ptr @G.1, align 4
ret i32 %c
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i128 @llvm.ctpop.i128(i128) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -mattr=+zbb,+zhinx -O1 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zbb,+zhinx -O1 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: bitcast: ' %a = bitcast <128 x i1> %x to i128' (in function: test_trunc_v128i1)
warning: Instruction selection used fallback path for test_trunc_v128i1
Occurrences (3):
| Input | Function | Config |
|---|
| combine-ctpop-to-vcpop.0885627021.ll (mutant of combine-ctpop-to-vcpop.ll) | test_trunc_v128i1 | -mtriple=riscv64 -mattr=+zbb,+zhinx -O1 -verify-machineinstrs |
| fixed-vectors-masked-store-int.f87c169e01.ll (mutant of fixed-vectors-masked-store-int.ll) | masked_store_v32i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O2 -code-model=small |
| fixed-vectors-masked-store-int.f87c169e01.ll (mutant of fixed-vectors-masked-store-int.ll) | masked_store_v128i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O2 -code-model=small |
Generated 2026-11-29 14:49 UTC.