fallback: translate: and i128

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: and i128 M
Occurrences:3 in 3 configs, 3 test files, 11 more counted only
Snippet from:codemodel-lowering.43049fb8c5.ll (mutant of codemodel-lowering.ll) @lower_global via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64 -verify-machineinstrs -mattr=+zhinx,+zbb -O1 -code-model=small
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i32
@G.2 = external global i128

; Function Attrs: nounwind
define i32 @lower_global(i32 %a) #0 {
  %B = and i128 1, -1
  %1 = load volatile i32, ptr @G, align 4
  store i128 %B, ptr @G.2, align 4
  ret i32 %1
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv64 -target-abi=lp64 -verify-machineinstrs -mattr=+zhinx,+zbb -O1 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64 -verify-machineinstrs -mattr=+zhinx,+zbb -O1 -code-model=small -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: and: '  %B = and i128 1, -1' (in function: lower_global)
warning: Instruction selection used fallback path for lower_global

Occurrences (3):

InputFunctionConfig
codemodel-lowering.43049fb8c5.ll (mutant of codemodel-lowering.ll)lower_global-mtriple=riscv64 -target-abi=lp64 -verify-machineinstrs -mattr=+zhinx,+zbb -O1 -code-model=small
float-round-conv.303e503fe7.ll (mutant of float-round-conv.ll)test_floor_ui16-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32f -mattr=+zdinx -O1
vararg.b015d28bc9.ll (mutant of vararg.ll)va2_caller-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O2

Generated 2026-11-29 14:49 UTC.