fallback: translate: mul i16
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: mul i16 M |
| Occurrences: | 4 in 4 configs, 4 test files, 25 more counted only |
| Snippet from: | atomic-cmpxchg.0b64c0c63e.ll (mutant of atomic-cmpxchg.ll) @cmpxchg_i16_seq_cst_seq_cst via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+ztso,+zacas,+zabha,+zfinx,+zve32x -O0 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define void @cmpxchg_i16_seq_cst_seq_cst(ptr %ptr, i16 %cmp, i16 %val) #0 {
%B = mul i16 %cmp, 0
%res = cmpxchg ptr %ptr, i16 %B, i16 %val seq_cst seq_cst, align 2
ret void
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+ztso,+zacas,+zabha,+zfinx,+zve32x -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+ztso,+zacas,+zabha,+zfinx,+zve32x -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: mul: ' %B = mul i16 %cmp, 0' (in function: cmpxchg_i16_seq_cst_seq_cst)
warning: Instruction selection used fallback path for cmpxchg_i16_seq_cst_seq_cst
Occurrences (4):
| Input | Function | Config |
|---|
| atomic-cmpxchg.0b64c0c63e.ll (mutant of atomic-cmpxchg.ll) | cmpxchg_i16_seq_cst_seq_cst | -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+ztso,+zacas,+zabha,+zfinx,+zve32x -O0 |
| ssub_sat_plus.be228b53d7.ll (mutant of ssub_sat_plus.ll) | func16 | -mtriple=riscv32 -mattr=+m,+zbb,+zhinx -O3 -verify-machineinstrs |
| uadd_sat_plus.fb61e38116.ll (mutant of uadd_sat_plus.ll) | func16 | -mtriple=riscv64 -mattr=+m,+zbb,+zbkb,+zfinx -O0 -verify-machineinstrs |
| zfhmin-half-intrinsics.2b7dbe1ed0.ll (mutant of zfhmin-half-intrinsics.ll) | lrint_f16 | -mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinx -O1 |
Generated 2026-11-29 14:49 UTC.