fallback: legalize: G_OR <2 x s64>
| Run: | main-04ca53e65f-20261014-105623 |
| Kind: | fallback |
| Category: | legalize: G_OR <2 x s64> NEW |
| Occurrences: | 2 in 2 configs, 1 test files |
| Snippet from: | sdata-sections.15cbe96662.ll (mutant of sdata-sections.ll) @f via llvm-extract |
| Config: | -mtriple=riscv64 -data-sections |
| Local check: | reproduces at 04ca53e65f |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i8
@G.1 = external global i8
@G.2 = external global <4 x i32>
define <2 x i64> @f(i64 %0, float %1, <4 x i32> %2) {
BB:
%LGV2 = load <4 x i32>, ptr @G.2, align 16
%LGV = load i8, ptr @G, align 1
%B3 = add <4 x i32> %2, %LGV2
%RP = alloca <2 x i64>, align 16
%L = load i8, ptr %RP, align 1
%3 = load <2 x i64>, ptr %RP, align 16
%B = or <2 x i64> %3, splat (i64 1)
%B1 = sub i8 %L, %LGV
store <2 x i64> %B, ptr poison, align 16
store i8 %B1, ptr @G.1, align 1
store <4 x i32> %B3, ptr %RP, align 16
ret <2 x i64> %3
}
!llvm.module.flags = !{!0}
!0 = !{i32 8, !"SmallDataLimit", i32 8}
Reproduce:
llc -mtriple=riscv64 -data-sections -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -data-sections -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %15:_(<2 x s64>) = G_OR %12:_, %13:_ (in function: f)
warning: Instruction selection used fallback path for f
Occurrences (2):
| Input | Function | Config |
|---|
| sdata-sections.15cbe96662.ll (mutant of sdata-sections.ll) | f | -mtriple=riscv64 -data-sections |
| sdata-sections.c2d5015106.ll (mutant of sdata-sections.ll) | f | -mtriple=riscv32 -data-sections |
Generated 2026-10-15 08:05 UTC.