fallback: legalize: G_OR <2 x s64>

Run:explore-bc8218b282-20261015-075519
Kind:fallback
Category:legalize: G_OR <2 x s64> NEW
Occurrences:53 in 45 configs, 11 test files
Snippet from:select-to-and-zext.05f807ffe6.ll (mutant of select-to-and-zext.ll) @from_trunc_i64 via llvm-extract + llvm-reduce
Config:-mtriple=riscv64 -verify-machineinstrs
Local check:reproduces at bc8218b282
Compiler Explorer:https://godbolt.org/z/hjbc6cfE1 (llc-assertions-trunk, checked 2026-10-15 08:05 UTC): G reproduces

Snippet:

define <2 x i64> @from_trunc_i64(<2 x i64> %LGV) {
  %B = or <2 x i64> %LGV, splat (i64 1)
  ret <2 x i64> %B
}

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv64 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*03remark: <unknown>:0:0: unable to legalize instruction: %5:_(<2 x s64>) = G_OR %0:_, %3:_ (in function: from_trunc_i64)
warning: Instruction selection used fallback path for from_trunc_i64
SelectionDAG (control)-mtriple=riscv64 -verify-machineinstrs -global-isel=003-

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %5:_(<2 x s64>) = G_OR %0:_, %3:_ (in function: from_trunc_i64)
warning: Instruction selection used fallback path for from_trunc_i64

Occurrences (53) (first 50):

InputFunctionConfig
abds-neg.0803477fb8.ll (mutant of abds-neg.ll)abd_ext_i16_i32-mtriple=riscv32
abds-neg.35ba604e38.ll (mutant of abds-neg.ll)abd_ext_i16_i32-mtriple=riscv32 -mattr=+zbb
abds-neg.6b49a2fb2b.ll (mutant of abds-neg.ll)abd_ext_i16_i32-mtriple=riscv64 -mattr=+zbb
abds-neg.bb1aac675f.ll (mutant of abds-neg.ll)abd_ext_i16_i32-mtriple=riscv64
atomic-cmpxchg-branch-on-result.00d39c4b84.ll (mutant of atomic-cmpxchg-branch-on-result.ll)cmpxchg_and_irrelevant_branch-mtriple=riscv32 -mattr=+a -verify-machineinstrs
atomic-cmpxchg-branch-on-result.853fd173aa.ll (mutant of atomic-cmpxchg-branch-on-result.ll)cmpxchg_and_irrelevant_branch-mtriple=riscv32 -mattr=+a,+zacas -verify-machineinstrs
atomic-cmpxchg-branch-on-result.b82bc433c7.ll (mutant of atomic-cmpxchg-branch-on-result.ll)cmpxchg_and_irrelevant_branch-mtriple=riscv64 -mattr=+a,+zacas,+zabha -verify-machineinstrs
atomic-cmpxchg-branch-on-result.b983522bd9.ll (mutant of atomic-cmpxchg-branch-on-result.ll)cmpxchg_and_irrelevant_branch-mtriple=riscv64 -mattr=+a -verify-machineinstrs
atomic-cmpxchg-branch-on-result.ceeede5f5b.ll (mutant of atomic-cmpxchg-branch-on-result.ll)cmpxchg_and_irrelevant_branch-mtriple=riscv64 -mattr=+a,+zacas -verify-machineinstrs
clmulh.08172c0f65.ll (mutant of clmulh.ll)clmulh_i32-mtriple=riscv64 -mattr=+m,+zvbc -verify-machineinstrs
clmulh.1455c53b5d.ll (mutant of clmulh.ll)clmulh_i32-mtriple=riscv32 -mattr=+m,+zbs -verify-machineinstrs
clmulh.24cdc39993.ll (mutant of clmulh.ll)clmulh_i32-mtriple=riscv64 -mattr=+m,+zbs -verify-machineinstrs
clmulh.407748f40a.ll (mutant of clmulh.ll)clmulh_i32-mtriple=riscv64 -mattr=+m -verify-machineinstrs
clmulh.a41d752bd6.ll (mutant of clmulh.ll)clmulh_i32-mtriple=riscv64 -verify-machineinstrs
clmulh.cc9820aac7.ll (mutant of clmulh.ll)clmulh_i32-mtriple=riscv32 -verify-machineinstrs
clmulh.dbad4584e5.ll (mutant of clmulh.ll)clmulh_i32-mtriple=riscv32 -mattr=+m,+zbc -verify-machineinstrs
clmulh.e458305dc3.ll (mutant of clmulh.ll)clmulh_i32-mtriple=riscv64 -mattr=+m,+zbc -verify-machineinstrs
clmulh.ec15b429c9.ll (mutant of clmulh.ll)clmulh_i32-mtriple=riscv32 -mattr=+m -verify-machineinstrs
clmulh.f67aa228dc.ll (mutant of clmulh.ll)clmulh_i32-mtriple=riscv32 -mattr=+m,+zvbc -verify-machineinstrs
combine-storetomstore.28d467b779.ll (mutant of combine-storetomstore.ll)test_masked_store_success_v4f16-mtriple=riscv64-- -mattr=+m,+v,+f
float-convert.0a11f09312.ll (mutant of float-convert.ll)fcvt_wu_s_sat-mtriple=riscv32 -mattr=+f -verify-machineinstrs -target-abi=ilp32f
float-convert.25f4d3edc4.ll (mutant of float-convert.ll)fcvt_wu_s_sat-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs -target-abi=ilp32
float-convert.46e7233f1b.ll (mutant of float-convert.ll)fcvt_wu_s_sat-mtriple=riscv64 -mattr=+f -verify-machineinstrs -target-abi=lp64f
float-convert.55b8c23226.ll (mutant of float-convert.ll)fcvt_wu_s_sat-mtriple=riscv64 -verify-machineinstrs
float-convert.59cfea19b9.ll (mutant of float-convert.ll)fcvt_wu_s_sat-mtriple=riscv32 -verify-machineinstrs
float-convert.859ce13f18.ll (mutant of float-convert.ll)fcvt_wu_s_sat-mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs -target-abi=lp64
jumptable.1a718f0152.ll (mutant of jumptable.ll)below_threshold-mtriple=riscv64 -code-model=medium -verify-machineinstrs
jumptable.1ae9ff45c5.ll (mutant of jumptable.ll)below_threshold-mtriple=riscv32 -code-model=medium -verify-machineinstrs -riscv-min-jump-table-entries=7
jumptable.1b3433012a.ll (mutant of jumptable.ll)below_threshold-mtriple=riscv32 -code-model=small -verify-machineinstrs -mattr=+xqcili
jumptable.2bd94b17e6.ll (mutant of jumptable.ll)below_threshold-mtriple=riscv64 -relocation-model=pic -verify-machineinstrs
jumptable.4599d8fab4.ll (mutant of jumptable.ll)below_threshold-mtriple=riscv32 -relocation-model=pic -verify-machineinstrs -riscv-min-jump-table-entries=7
jumptable.7327946694.ll (mutant of jumptable.ll)below_threshold-mtriple=riscv64 -relocation-model=pic -verify-machineinstrs -riscv-min-jump-table-entries=7
jumptable.75286236ee.ll (mutant of jumptable.ll)below_threshold-mtriple=riscv32 -relocation-model=pic -verify-machineinstrs
jumptable.934c1ee673.ll (mutant of jumptable.ll)below_threshold-mtriple=riscv32 -code-model=small -verify-machineinstrs
jumptable.94c118186e.ll (mutant of jumptable.ll)below_threshold-mtriple=riscv64 -code-model=large -verify-machineinstrs
jumptable.a39767b447.ll (mutant of jumptable.ll)below_threshold-mtriple=riscv32 -code-model=small -verify-machineinstrs -riscv-min-jump-table-entries=7 -mattr=+xqcili
jumptable.a685d78299.ll (mutant of jumptable.ll)below_threshold-mtriple=riscv32 -code-model=medium -verify-machineinstrs
jumptable.b74bee2a45.ll (mutant of jumptable.ll)below_threshold-mtriple=riscv64 -code-model=small -verify-machineinstrs -riscv-min-jump-table-entries=7
jumptable.b8f329ceed.ll (mutant of jumptable.ll)below_threshold-mtriple=riscv32 -code-model=small -verify-machineinstrs -riscv-min-jump-table-entries=7
jumptable.d089c6c025.ll (mutant of jumptable.ll)below_threshold-mtriple=riscv64 -code-model=small -verify-machineinstrs
jumptable.eecb27072c.ll (mutant of jumptable.ll)below_threshold-mtriple=riscv64 -code-model=medium -verify-machineinstrs -riscv-min-jump-table-entries=7
rv32-move-merge.a282ee264a.ll (mutant of rv32-move-merge.ll)pli_h_pair_negative-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs
rv32-move-merge.e0c530dd64.ll (mutant of rv32-move-merge.ll)pli_h_pair_negative-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
select-to-and-zext.05f807ffe6.ll (mutant of select-to-and-zext.ll)from_trunc_i64-mtriple=riscv64 -verify-machineinstrs
select-to-and-zext.0d077b8d43.ll (mutant of select-to-and-zext.ll)from_trunc_i64-mtriple=riscv32 -verify-machineinstrs
split-store.394088462f.ll (mutant of split-store.ll)int32_int32_pair-mtriple=riscv64 -verify-machineinstrs
split-store.a2130bcea1.ll (mutant of split-store.ll)int32_int32_pair-mtriple=riscv64 -mattr=+d -verify-machineinstrs
split-store.b97c438611.ll (mutant of split-store.ll)int32_int32_pair-mtriple=riscv32 -verify-machineinstrs
split-store.bf6d5fcdf1.ll (mutant of split-store.ll)int32_int32_pair-mtriple=riscv32 -mattr=+d -verify-machineinstrs
unroll-loop-cse.b3ef75ab8d.ll (mutant of unroll-loop-cse.ll)unroll_loop_cse-mtriple=riscv32 -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.