[llvm] [RISCV][GISel] Fold `G_FCONSTANT` 0.0 store into `sw x0` (PR #163008)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 11 09:49:50 PDT 2025


================
@@ -0,0 +1,41 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -mtriple=riscv32 -global-isel -mattr=+f -verify-machineinstrs < %s \
+; RUN:   | FileCheck %s --check-prefix=RV32
+; RUN: llc -mtriple=riscv64 -global-isel -mattr=+d -verify-machineinstrs < %s \
+; RUN:   | FileCheck %s --check-prefix=RV64
----------------
arsenm wrote:

```suggestion
; RUN: llc -global-isel -mtriple=riscv32 -global-isel -mattr=+f < %s | FileCheck %s --check-prefix=RV32
; RUN: llc -global-isel -mtriple=riscv64 -global-isel -mattr=+d < %s  | FileCheck %s --check-prefix=RV64
```

https://github.com/llvm/llvm-project/pull/163008


More information about the llvm-commits mailing list