fallback: legalize: G_XOR <N x i128>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_XOR <N x i128> M
Occurrences:3 in 3 configs, 2 test files, 7 more counted only
Snippet from:fixed-vectors-abd.2c0d428b33.ll (mutant of fixed-vectors-abd.ll) @sabd_2d via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -O1
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i1

define <2 x i64> @sabd_2d(<2 x i64> %a, <2 x i64> %b) {
  %a.sext = sext <2 x i64> %a to <2 x i128>
  %b.sext = sext <2 x i64> %b to <2 x i128>
  %sub = sub <2 x i128> %a.sext, %b.sext
  %abs = call <2 x i128> @llvm.abs.v2i128(<2 x i128> %sub, i1 true)
  %trunc = trunc <2 x i128> %abs to <2 x i64>
  %C = icmp sge i64 -1, 4294967296
  store i1 %C, ptr @G.2, align 1
  ret <2 x i64> %trunc
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i128> @llvm.abs.v2i128(<2 x i128>, i1 immarg) #0

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %8:_(<2 x i128>) = G_XOR %36:_, %35:_ (in function: sabd_2d)
warning: Instruction selection used fallback path for sabd_2d

Occurrences (3):

InputFunctionConfig
clmulh.5a8fae50b4.ll (mutant of clmulh.ll)commutative_clmulh_v2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbs -O3
clmulh.9443cfe47d.ll (mutant of clmulh.ll)commutative_clmulh_v2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbc -O2 -code-model=small
fixed-vectors-abd.2c0d428b33.ll (mutant of fixed-vectors-abd.ll)sabd_2d-mtriple=riscv32 -verify-machineinstrs -O1

Generated 2026-11-29 14:49 UTC.