crash: LLVM ERROR: Found 4 machine code errors.

Run:explore-db12fc36f6-20261127-115111
Kind:crash
Category:LLVM ERROR: Found 4 machine code errors. M
Occurrences:1 in 1 configs, 1 test files
Snippet from:fixed-vectors-fp.3fbd44016a.ll (mutant of fixed-vectors-fp.ll) @copysign_v6bf16 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v -O3
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define void @copysign_v6bf16(ptr %x, ptr %y) {
  %a = load <6 x bfloat>, ptr %x, align 16
  %b = load <6 x bfloat>, ptr %y, align 16
  %G = getelementptr ptr, ptr %x, i16 1
  %c = call <6 x bfloat> %G(<6 x bfloat> %a, <6 x bfloat> %b)
  store <6 x bfloat> %c, ptr %x, align 16
  ret void
}

Reproduce:

llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v -O3 -global-isel=0 snippet.ll -o -

Local llc output:

# After IRTranslator
# Machine code for function copysign_v6bf16: IsSSA, TracksLiveness
Frame Objects:
  fi#0: size=16, align=16, at location [SP]
save/restore points:
save points are empty
restore points are empty
Function Live Ins: $x10, $x11
bb.1 (%ir-block.0):
  liveins: $x10, $x11
  %0:_(p0) = COPY $x10
  %1:_(p0) = COPY $x11
  %2:_(<6 x bf16>) = G_LOAD %0:_(p0) :: (load (<6 x bf16>) from %ir.x, align 16)
  %3:_(<6 x bf16>) = G_LOAD %1:_(p0) :: (load (<6 x bf16>) from %ir.y, align 16)
  %4:_(i64) = G_CONSTANT i64 8
  %5:gprjalrnonx7(p0) = G_PTR_ADD %0:_, %4:_(i64)
  %7:_(p0) = G_FRAME_INDEX %stack.0
  ADJCALLSTACKDOWN 0, 0, implicit-def $x2, implicit $x2
  %14:_(bf16), %15:_(bf16), %16:_(bf16), %17:_(bf16), %18:_(bf16), %19:_(bf16) = G_UNMERGE_VALUES %2:_(<6 x bf16>)
  %8:_(f32) = G_ANYEXT %14:_(bf16)
  %9:_(f32) = G_ANYEXT %15:_(bf16)
  %10:_(f32) = G_ANYEXT %16:_(bf16)
  %11:_(f32) = G_ANYEXT %17:_(bf16)
  %12:_(f32) = G_ANYEXT %18:_(bf16)
  %13:_(f32) = G_ANYEXT %19:_(bf16)
  %26:_(bf16), %27:_(bf16), %28:_(bf16), %29:_(bf16), %30:_(bf16), %31:_(bf16) = G_UNMERGE_VALUES %3:_(<6 x bf16>)
  %20:_(f32) = G_ANYEXT %26:_(bf16)
  %21:_(f32) = G_ANYEXT %27:_(bf16)
  %22:_(f32) = G_ANYEXT %28:_(bf16)
  %23:_(f32) = G_ANYEXT %29:_(bf16)
  %24:_(f32) = G_ANYEXT %30:_(bf16)
  %25:_(f32) = G_ANYEXT %31:_(bf16)
  $x10 = COPY %7:_(p0)
  $f10_f = COPY %8:_(f32)
  $f11_f = COPY %9:_(f32)
  $f12_f = COPY %10:_(f32)
  $f13_f = COPY %11:_(f32)
  $f14_f = COPY %12:_(f32)
  $f15_f = COPY %13:_(f32)
  $f16_f = COPY %20:_(f32)
  $f17_f = COPY %21:_(f32)
  $x11 = COPY %22:_(f32)
  $x12 = COPY %23:_(f32)
  $x13 = COPY %24:_(f32)
  $x14 = COPY %25:_(f32)
  PseudoCALLIndirect %5:gprjalrnonx7(p0), <regmask $vlenb $x0 $x1 $x8 $x9 $x18 $x19 $x20 $x21 $x22 $x23 $x24 $x25 $x26 $x27 $f8_d $f9_d $f18_d $f19_d $f20_d $f21_d $f22_d $f23_d $f24_d $f25_d $f26_d $f27_d $f8_f $f9_f $f18_f $f19_f $f20_f $f21_f and 53 more...>, implicit-def dead $x1, implicit $x10, implicit $f10_f, implicit $f11_f, implicit $f12_f, implicit $f13_f, implicit $f14_f, implicit $f15_f, implicit $f16_f, implicit $f17_f, implicit $x11, implicit $x12, implicit $x13, implicit $x14
  ADJCALLSTACKUP 0, 0, implicit-def $x2, implicit $x2
  %6:_(<6 x bf16>) = G_LOAD %7:_(p0) :: (load (<6 x bf16>) from %stack.0, align 16)
  G_STORE %6:_(<6 x bf16>), %0:_(p0) :: (store (<6 x bf16>) into %ir.x, align 16)
  PseudoRET
# End machine code for function copysign_v6bf16.
*** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
- function:    copysign_v6bf16
- basic block: %bb.1  (0x556eb81beb10)
- instruction: $x11 = COPY %22:_(f32)
Def Size = 64, Src Size = 32
*** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
- function:    copysign_v6bf16
- basic block: %bb.1  (0x556eb81beb10)
- instruction: $x12 = COPY %23:_(f32)
Def Size = 64, Src Size = 32
*** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
- function:    copysign_v6bf16
- basic block: %bb.1  (0x556eb81beb10)
- instruction: $x13 = COPY %24:_(f32)
Def Size = 64, Src Size = 32
*** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
- function:    copysign_v6bf16
- basic block: %bb.1  (0x556eb81beb10)
- instruction: $x14 = COPY %25:_(f32)
Def Size = 64, Src Size = 32
LLVM ERROR: Found 4 machine code errors.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0.	Program arguments: /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/build/bin/llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* -o -
1.	Running pass 'Function Pass Manager' on module '<stdin>'.
2.	Running pass 'Verify generated machine code' on function '@copysign_v6bf16'
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point 

Occurrences (1):

InputFunctionConfig
fixed-vectors-fp.3fbd44016a.ll (mutant of fixed-vectors-fp.ll)-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v -O3

Generated 2026-11-29 14:49 UTC.