fallback: translate: sub i16

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: sub i16 M
Occurrences:3 in 3 configs, 3 test files, 33 more counted only
Snippet from:calls.f4f72148e6.ll (mutant of calls.ll) @test_call_defined_many_args via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i16

; Function Attrs: nounwind
declare i32 @defined_many_args(i32, i32, i32, i32, i32, i32, i32, i32, i32, i32) #0

; Function Attrs: nounwind
define i32 @test_call_defined_many_args(i32 %a) #0 {
  %B = sub i16 0, 42
  %1 = call i32 @defined_many_args(i32 %a, i32 %a, i32 %a, i32 %a, i32 %a, i32 %a, i32 %a, i32 %a, i32 %a, i32 %a)
  store i16 %B, ptr @G, align 2
  ret i32 %1
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O0 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: sub: '  %B = sub i16 0, 42' (in function: test_call_defined_many_args)
warning: Instruction selection used fallback path for test_call_defined_many_args

Occurrences (3):

InputFunctionConfig
bswap-bitreverse.7209498565.ll (mutant of bswap-bitreverse.ll)test_bswap_bitreverse_i16-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx,+zcb -O3 -code-model=small
calls.f4f72148e6.ll (mutant of calls.ll)test_call_defined_many_args-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O0
trap.9746b9a1dc.ll (mutant of trap.ll)test_debugtrap-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O2

Generated 2026-11-29 14:49 UTC.