fallback: translate: bitcast i128

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: bitcast i128 M
Occurrences:4 in 4 configs, 4 test files, 28 more counted only
Snippet from:constbarrier-rv64.0c2c404b5d.ll (mutant of constbarrier-rv64.ll) @constant_fold_barrier_i128 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O2 -code-model=medium
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i128

define i128 @constant_fold_barrier_i128(i128 %x) {
entry:
  %A = alloca i1, align 1
  store i1 poison, ptr %A, align 1
  %LGV = load i128, ptr @G, align 4
  %C = icmp ne i128 %LGV, -170141183460469231731687303715884105728
  %and = and i128 %x, 2048
  %add = add i128 %and, 2048
  store i1 %C, ptr %A, align 1
  ret i128 %add
}

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O2 -code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O2 -code-model=medium -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: bitcast: '  %const = bitcast i128 2048 to i128' (in function: constant_fold_barrier_i128)
warning: Instruction selection used fallback path for constant_fold_barrier_i128

Occurrences (4):

InputFunctionConfig
clmulh.e39523d926.ll (mutant of clmulh.ll)commutative_clmulh_v2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+zvbc,+zfinx -O2
constbarrier-rv64.0c2c404b5d.ll (mutant of constbarrier-rv64.ll)constant_fold_barrier_i128-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O2 -code-model=medium
double-isnan.8fcef09a0e.ll (mutant of double-isnan.ll)double_not_nan-mtriple=riscv64 -target-abi lp64 -verify-machineinstrs -mattr=+zdinx -O1 -code-model=medium
llvm.frexp.7f46da48f6.ll (mutant of llvm.frexp.ll)test_frexp_v4f32_v4i32_only_use_fract-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zdinx -O2

Generated 2026-11-29 14:49 UTC.