fallback: legalize: G_XOR <N x i128>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_XOR <N x i128> M
Occurrences:3 in 3 configs, 3 test files, 8 more counted only
Snippet from:umulh.101da7dee3.ll (mutant of umulh.ll) @umulh_v2i128 via llvm-extract
Config:-mtriple=riscv64 -mattr=+v,+zve32x -O0 -code-model=small -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global <2 x i128>

; Function Attrs: nounwind
define <2 x i128> @umulh_v2i128(<2 x i128> %x, <2 x i128> %y) #0 {
  %LGV = load <2 x i128>, ptr @G, align 32
  %r = call <2 x i128> @llvm.umulh.v2i128(<2 x i128> %x, <2 x i128> %y)
  %B = xor <2 x i128> %r, %LGV
  ret <2 x i128> %B
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i128> @llvm.umulh.v2i128(<2 x i128>, <2 x i128>) #1

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

Reproduce:

llc -mtriple=riscv64 -mattr=+v,+zve32x -O0 -code-model=small -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+v,+zve32x -O0 -code-model=small -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (3):

InputFunctionConfig
fixed-vectors-abd.89e284cbb9.ll (mutant of fixed-vectors-abd.ll)uabd_2d-mtriple=riscv32 -verify-machineinstrs -O2
smulh.0d7c179d14.ll (mutant of smulh.ll)smulh_v2i128-mtriple=riscv32 -mattr=+zfa -O0 -verify-machineinstrs
umulh.101da7dee3.ll (mutant of umulh.ll)umulh_v2i128-mtriple=riscv64 -mattr=+v,+zve32x -O0 -code-model=small -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.