fallback: legalize: G_GET_FPENV s64
| Run: | explore-bc8218b282-20261015-075519 |
| Kind: | fallback |
| Category: | legalize: G_GET_FPENV s64 |
| Occurrences: | 6 in 3 configs, 1 test files |
| Snippet from: | fpenv-xlen.ll @func_get_fpenv via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+f -verify-machineinstrs |
| Local check: | reproduces at bc8218b282 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i64 @func_get_fpenv() {
entry:
%fpenv = call i64 @llvm.get.fpenv.i64()
ret i64 %fpenv
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite)
declare i64 @llvm.get.fpenv.i64() #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite) }
Reproduce:
llc -mtriple=riscv64 -mattr=+f -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+f -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %0:_(s64) = G_GET_FPENV (in function: func_get_fpenv)
warning: Instruction selection used fallback path for func_get_fpenv
Occurrences (6):
| Input | Function | Config |
|---|
| fpenv-xlen.ll | func_get_fpenv | -mtriple=riscv64 -mattr=+f -verify-machineinstrs |
| fpenv-xlen.ll | func_get_fpenv | -mtriple=riscv64 -mattr=+f -verify-machineinstrs -O0 |
| fpenv-xlen.ll | func_get_fpenv | -mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs |
| fpenv-xlen.0d596724a2.ll (mutant of fpenv-xlen.ll) | func_get_fpenv | -mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs |
| fpenv-xlen.615598dcea.ll (mutant of fpenv-xlen.ll) | func_get_fpenv | -mtriple=riscv64 -mattr=+f -verify-machineinstrs -O0 |
| fpenv-xlen.f645565e15.ll (mutant of fpenv-xlen.ll) | func_get_fpenv | -mtriple=riscv64 -mattr=+f -verify-machineinstrs |
Generated 2026-10-15 08:05 UTC.