fallback: legalize: G_SUB <4 x s32>

Run:main-04ca53e65f-20261014-113325
Kind:fallback
Category:legalize: G_SUB <4 x s32> NEW
Occurrences:14 in 11 configs, 5 test files
Snippet from:tagged-globals.0df2039f0e.ll (mutant of tagged-globals.ll) @global_int_addr via llvm-extract + llvm-reduce
Config:-mtriple=riscv64 --relocation-model=pic
Local check:reproduces at 04ca53e65f
Compiler Explorer:https://godbolt.org/z/h3Enxsb4Y (llc-assertions-trunk, checked 2026-10-14 11:04 UTC): G reproduces

Snippet:

define <4 x i32> @global_int_addr(<4 x i32> %LGV) {
  %B = urem <4 x i32> %LGV, splat (i32 42)
  ret <4 x i32> %B
}

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv64 --relocation-model=pic -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*039remark: <unknown>:0:0: unable to legalize instruction: %21:_(<4 x s32>) = G_SUB %0:_, %20:_ (in function: global_int_addr)
warning: Instruction selection used fallback path for global_int_addr
SelectionDAG (control)-mtriple=riscv64 --relocation-model=pic -global-isel=0039-

Reproduce:

llc -mtriple=riscv64 --relocation-model=pic -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 --relocation-model=pic -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %21:_(<4 x s32>) = G_SUB %0:_, %20:_ (in function: global_int_addr)
warning: Instruction selection used fallback path for global_int_addr

Occurrences (14):

InputFunctionConfig
rv64zbkb.8939abc3f8.ll (mutant of rv64zbkb.ll)pack_i32_allWUsers-mtriple=riscv64 -mattr=+m,+zbkb -verify-machineinstrs
rv64zbkb.f96f16adc5.ll (mutant of rv64zbkb.ll)pack_i32_allWUsers-mtriple=riscv64 -mattr=+m -verify-machineinstrs
short-forward-branch-opt-with-branch-with-immediates_32_uge.230492ae0d.ll (mutant of short-forward-branch-opt-with-branch-with-immediates_32_uge.ll)branch_with_immSFB_xori-verify-machineinstrs -mtriple=riscv32
short-forward-branch-opt-with-branch-with-immediates_32_uge.5f8b9160cd.ll (mutant of short-forward-branch-opt-with-branch-with-immediates_32_uge.ll)branch_with_immSFB_xori-verify-machineinstrs -mtriple=riscv32 -mattr=+xqci,+short-forward-branch-ialu,+short-forward-branch-imul,+short-forward-branch-iload,+m
short-forward-branch-opt-with-branch-with-immediates_32_ult.70ff18ca29.ll (mutant of short-forward-branch-opt-with-branch-with-immediates_32_ult.ll)branch_with_immSFB_xori-verify-machineinstrs -mtriple=riscv32 -mattr=+xqci,+short-forward-branch-ialu,+short-forward-branch-imul,+short-forward-branch-iload,+m
short-forward-branch-opt-with-branch-with-immediates_32_ult.ddc9166260.ll (mutant of short-forward-branch-opt-with-branch-with-immediates_32_ult.ll)branch_with_immSFB_xori-verify-machineinstrs -mtriple=riscv32
tagged-globals.0df2039f0e.ll (mutant of tagged-globals.ll)global_int_addr-mtriple=riscv64 --relocation-model=pic
tagged-globals.b15212a17d.ll (mutant of tagged-globals.ll)global_int_addr-mtriple=riscv64 --relocation-model=static
xaluo.04cbc4b9fd.ll (mutant of xaluo.ll)umulo.br.i64-mtriple=riscv64 -mattr=+m -verify-machineinstrs
xaluo.0a62a1c8fb.ll (mutant of xaluo.ll)umulo.br.i64-mtriple=riscv64 -mattr=+m,+zicond -verify-machineinstrs
xaluo.370f764d4b.ll (mutant of xaluo.ll)umulo.br.i64-mtriple=riscv32 -mattr=+m,+zicond -verify-machineinstrs
xaluo.8a7d89483c.ll (mutant of xaluo.ll)umulo.br.i64-mtriple=riscv64 -mattr=+m,+zba -verify-machineinstrs
xaluo.8b216423ac.ll (mutant of xaluo.ll)umulo.br.i64-mtriple=riscv32 -mattr=+m,+zba -verify-machineinstrs
xaluo.8cea5f5c18.ll (mutant of xaluo.ll)umulo.br.i64-mtriple=riscv32 -mattr=+m -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.