fallback: translate: and i1
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: and i1 M |
| Occurrences: | 3 in 3 configs, 3 test files, 21 more counted only |
| Snippet from: | atomic-cmpxchg.e4637adce5.ll (mutant of atomic-cmpxchg.ll) @cmpxchg_i32_acquire_monotonic via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+a,+ztso,+zacas,+zabha,+zfinx,+zihintpause -O0 -verify-machineinstrs |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define void @cmpxchg_i32_acquire_monotonic(ptr %ptr, i32 %cmp, i32 %val) #0 {
%B = and i1 false, true
%res = cmpxchg ptr %ptr, i32 %cmp, i32 %val acquire monotonic, align 4
store i1 %B, ptr poison, align 1
ret void
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -mattr=+a,+ztso,+zacas,+zabha,+zfinx,+zihintpause -O0 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+a,+ztso,+zacas,+zabha,+zfinx,+zihintpause -O0 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: and: ' %B = and i1 false, true' (in function: cmpxchg_i32_acquire_monotonic)
warning: Instruction selection used fallback path for cmpxchg_i32_acquire_monotonic
Occurrences (3):
| Input | Function | Config |
|---|
| atomic-cmpxchg.e4637adce5.ll (mutant of atomic-cmpxchg.ll) | cmpxchg_i32_acquire_monotonic | -mtriple=riscv64 -mattr=+a,+ztso,+zacas,+zabha,+zfinx,+zihintpause -O0 -verify-machineinstrs |
| fp-fcanonicalize.a518bca5dc.ll (mutant of fp-fcanonicalize.ll) | fcanonicalize_v2f16_nnan | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2 |
| select-and.587380c201.ll (mutant of select-and.ll) | if_of_and | -mtriple=riscv64 -verify-machineinstrs -mattr=+xmipscmov,+zdinx,+zihintpause -O1 |
Generated 2026-11-29 14:49 UTC.