fallback: translate: ashr i32
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: ashr i32 M |
| Occurrences: | 4 in 4 configs, 4 test files, 71 more counted only |
| Snippet from: | select-constant-xor.c6487d732b.ll (mutant of select-constant-xor.ll) @xori32i8 via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+zfinx,+zve32x -O3 -code-model=small -verify-machineinstrs |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global <8 x i1>
define i8 @xori32i8(i32 %a) {
%shr4 = ashr i32 %a, 31
%conv5 = trunc i32 %shr4 to i8
%xor = xor i8 %conv5, 84
%C = icmp ugt <8 x i8> splat (i8 -128), splat (i8 127)
store <8 x i1> %C, ptr @G, align 1
ret i8 %xor
}
Reproduce:
llc -mtriple=riscv64 -mattr=+zfinx,+zve32x -O3 -code-model=small -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zfinx,+zve32x -O3 -code-model=small -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: ashr: ' %shr4 = ashr i32 %a, 31' (in function: xori32i8)
warning: Instruction selection used fallback path for xori32i8
Occurrences (4):
| Input | Function | Config |
|---|
| half-intrinsics.7fab3715cc.ll (mutant of half-intrinsics.ll) | sinh_f16 | -mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinx -O0 |
| min-max.068324be74.ll (mutant of min-max.ll) | smin_i32 | -mtriple=riscv64 -mattr=+zfinx -O3 -verify-machineinstrs |
| rv64xtheadbb.9b3702fc73.ll (mutant of rv64xtheadbb.ll) | sextw_removal_ext | -mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx,+c -O2 |
| select-constant-xor.c6487d732b.ll (mutant of select-constant-xor.ll) | xori32i8 | -mtriple=riscv64 -mattr=+zfinx,+zve32x -O3 -code-model=small -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.