fallback: legalize: G_EXTRACT_VECTOR_ELT s64,<2 x s64>
| Run: | explore-04ca53e65f-20261014-114124 |
| Kind: | fallback |
| Category: | legalize: G_EXTRACT_VECTOR_ELT s64,<2 x s64> NEW |
| Occurrences: | 1 in 1 configs, 1 test files |
| Snippet from: | spill-fill-fold.859cff8be2.ll (mutant of spill-fill-fold.ll) @fill_double_to_i64 via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+d -verify-machineinstrs -target-abi=lp64d |
| Local check: | reproduces at 04ca53e65f |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.2 = external global <2 x i64>
@G.3 = external global i16
; Function Attrs: nounwind
define i64 @fill_double_to_i64(double %a) #0 {
%LGV1 = load i16, ptr @G.3, align 2
%LGV = load <2 x i64>, ptr @G.2, align 16
call void asm sideeffect "", "~{x0},~{x1},~{x2},~{x3},~{x4},~{x5},~{x6},~{x7},~{x8},~{x9},~{x10},~{x11},~{x12},~{x13},~{x14},~{x15},~{x16},~{x17},~{x18},~{x19},~{x20},~{x21},~{x22},~{x23},~{x24},~{x25},~{x26},~{x27},~{x28},~{x29},~{x30},~{x31},~{f0_d},~{f1_d},~{f2_d},~{f3_d},~{f4_d},~{f5_d},~{f6_d},~{f7_d},~{f8_d},~{f9_d},~{f10_d},~{f11_d},~{f12_d},~{f13_d},~{f14_d},~{f15_d},~{f16_d},~{f17_d},~{f18_d},~{f19_d},~{f20_d},~{f21_d},~{f22_d},~{f23_d},~{f24_d},~{f25_d},~{f26_d},~{f27_d},~{f28_d},~{f29_d},~{f30_d},~{f31_d}"() #0
%E = extractelement <2 x i64> %LGV, i16 %LGV1
ret i64 %E
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -mattr=+d -verify-machineinstrs -target-abi=lp64d -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+d -verify-machineinstrs -target-abi=lp64d -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %5:_(s64) = G_EXTRACT_VECTOR_ELT %3:_(<2 x s64>), %6:_(s64) (in function: fill_double_to_i64)
warning: Instruction selection used fallback path for fill_double_to_i64
Occurrences (1):
| Input | Function | Config |
|---|
| spill-fill-fold.859cff8be2.ll (mutant of spill-fill-fold.ll) | fill_double_to_i64 | -mtriple=riscv64 -mattr=+d -verify-machineinstrs -target-abi=lp64d |
Generated 2026-10-15 08:05 UTC.