crash: LLVM ERROR: Found 7 machine code errors.
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | crash |
| Category: | LLVM ERROR: Found 7 machine code errors. M |
| Occurrences: | 1 in 1 configs, 1 test files |
| Snippet from: | fixed-vectors-deinterleave-load.cd1181bbbc.ll (mutant of fixed-vectors-deinterleave-load.ll) @vector_deinterleave_load_v8bf16_v16bf16 via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+zvfh,+zvfbfmin,+zbkb -O3 -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.4 = external global i64
define { <8 x bfloat>, <8 x bfloat> } @vector_deinterleave_load_v8bf16_v16bf16(ptr %p) {
%LGV1 = load i64, ptr @G.4, align 4
%G = getelementptr i128, ptr %p, i64 %LGV1
%vec = load <16 x bfloat>, ptr %p, align 32
%deinterleaved.results = call { <8 x bfloat>, <8 x bfloat> } %G(<16 x bfloat> %vec)
%t0 = extractvalue { <8 x bfloat>, <8 x bfloat> } %deinterleaved.results, 0
%t1 = extractvalue { <8 x bfloat>, <8 x bfloat> } %deinterleaved.results, 1
%res0 = insertvalue { <8 x bfloat>, <8 x bfloat> } poison, <8 x bfloat> %t0, 0
%res1 = insertvalue { <8 x bfloat>, <8 x bfloat> } %res0, <8 x bfloat> %t1, 1
ret { <8 x bfloat>, <8 x bfloat> } %res1
}
Reproduce:
llc -mtriple=riscv64 -mattr=+zvfh,+zvfbfmin,+zbkb -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zvfh,+zvfbfmin,+zbkb -O3 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
# After IRTranslator
# Machine code for function vector_deinterleave_load_v8bf16_v16bf16: IsSSA, TracksLiveness
Frame Objects:
fi#0: size=32, 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
%1:_(p0) = COPY $x10
%0:_(p0) = COPY $x11
%3:_(p0) = G_GLOBAL_VALUE @G.4
%47:_(<8 x bf16>) = G_IMPLICIT_DEF
%2:_(i64) = G_LOAD %3:_(p0) :: (dereferenceable load (i64) from @G.4, align 4)
%4:_(i64) = G_CONSTANT i64 16
%5:_(i64) = G_MUL %2:_, %4:_
%6:gprjalrnonx7(p0) = G_PTR_ADD %0:_, %5:_(i64)
%7:_(<16 x bf16>) = G_LOAD %0:_(p0) :: (load (<16 x bf16>) from %ir.p)
%10:_(p0) = G_FRAME_INDEX %stack.0
ADJCALLSTACKDOWN 8, 0, implicit-def $x2, implicit $x2
%27:_(bf16), %28:_(bf16), %29:_(bf16), %30:_(bf16), %31:_(bf16), %32:_(bf16), %33:_(bf16), %34:_(bf16), %35:_(bf16), %36:_(bf16), %37:_(bf16), %38:_(bf16), %39:_(bf16), %40:_(bf16), %41:_(bf16), %42:_(bf16) = G_UNMERGE_VALUES %7:_(<16 x bf16>)
%11:_(f32) = G_ANYEXT %27:_(bf16)
%12:_(f32) = G_ANYEXT %28:_(bf16)
%13:_(f32) = G_ANYEXT %29:_(bf16)
%14:_(f32) = G_ANYEXT %30:_(bf16)
%15:_(f32) = G_ANYEXT %31:_(bf16)
%16:_(f32) = G_ANYEXT %32:_(bf16)
%17:_(f32) = G_ANYEXT %33:_(bf16)
%18:_(f32) = G_ANYEXT %34:_(bf16)
%19:_(f32) = G_ANYEXT %35:_(bf16)
%20:_(f32) = G_ANYEXT %36:_(bf16)
%21:_(f32) = G_ANYEXT %37:_(bf16)
%22:_(f32) = G_ANYEXT %38:_(bf16)
%23:_(f32) = G_ANYEXT %39:_(bf16)
%24:_(f32) = G_ANYEXT %40:_(bf16)
%25:_(f32) = G_ANYEXT %41:_(bf16)
%26:_(f32) = G_ANYEXT %42:_(bf16)
%43:_(p0) = COPY $x2
%44:_(i64) = G_CONSTANT i64 0
%45:_(p0) = G_PTR_ADD %43:_, %44:_(i64)
G_STORE %26:_(f32), %45:_(p0) :: (store (f32) into stack, align 16)
$x10 = COPY %10:_(p0)
$f10_f = COPY %11:_(f32)
$f11_f = COPY %12:_(f32)
$f12_f = COPY %13:_(f32)
$f13_f = COPY %14:_(f32)
$f14_f = COPY %15:_(f32)
$f15_f = COPY %16:_(f32)
$f16_f = COPY %17:_(f32)
$f17_f = COPY %18:_(f32)
$x11 = COPY %19:_(f32)
$x12 = COPY %20:_(f32)
$x13 = COPY %21:_(f32)
$x14 = COPY %22:_(f32)
$x15 = COPY %23:_(f32)
$x16 = COPY %24:_(f32)
$x17 = COPY %25:_(f32)
PseudoCALLIndirect %6:gprjalrnonx7(p0), <regmask $vlenb $x0 $x1 $x8 $x9 $x18 $x19 $x20 $x21 $x22 $x23 $x24 $x25 $x26 $x27 $f8_f $f9_f $f18_f $f19_f $f20_f $f21_f $f22_f $f23_f $f24_f $f25_f $f26_f $f27_f $f8_h $f9_h $f18_h $f19_h $f20_h $f21_h and 41 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, implicit $x15, implicit $x16, implicit $x17
ADJCALLSTACKUP 8, 0, implicit-def $x2, implicit $x2
%8:_(<8 x bf16>) = G_LOAD %10:_(p0) :: (load (<8 x bf16>) from %stack.0)
%46:_(p0) = nuw inbounds G_PTR_ADD %10:_, %4:_(i64)
%9:_(<8 x bf16>) = G_LOAD %46:_(p0) :: (load (<8 x bf16>) from %stack.0)
G_STORE %8:_(<8 x bf16>), %1:_(p0) :: (store (<8 x bf16>))
%48:_(p0) = nuw inbounds G_PTR_ADD %1:_, %4:_(i64)
G_STORE %9:_(<8 x bf16>), %48:_(p0) :: (store (<8 x bf16>))
PseudoRET
# End machine code for function vector_deinterleave_load_v8bf16_v16bf16.
*** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
- function: vector_deinterleave_load_v8bf16_v16bf16
- basic block: %bb.1 (0x560452860890)
- instruction: $x11 = COPY %19:_(f32)
Def Size = 64, Src Size = 32
*** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
- function: vector_deinterleave_load_v8bf16_v16bf16
- basic block: %bb.1 (0x560452860890)
- instruction: $x12 = COPY %20:_(f32)
Def Size = 64, Src Size = 32
*** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
- function: vector_deinterleave_load_v8bf16_v16bf16
- basic block: %bb.1 (0x560452860890)
- instruction: $x13 = COPY %21:_(f32)
Def Size = 64, Src Size = 32
*** Bad machine code: Copy Instruct
Occurrences (1):
| Input | Function | Config |
|---|
| fixed-vectors-deinterleave-load.cd1181bbbc.ll (mutant of fixed-vectors-deinterleave-load.ll) | | -mtriple=riscv64 -mattr=+zvfh,+zvfbfmin,+zbkb -O3 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.