[llvm] [RISCV] Add a tune feature to disable stripping W suffix (PR #86255)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 03:03:50 PDT 2024


================
@@ -0,0 +1,74 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -mtriple=riscv64 -mattr=+m -verify-machineinstrs < %s \
+; RUN:   | FileCheck -check-prefixes=STRIP %s
+; RUN: llc -mtriple=riscv64 -mattr=+m,+no-strip-w-suffix -verify-machineinstrs < %s \
+; RUN:   | FileCheck -check-prefixes=NO-STRIP %s
+
+define i32 @addiw(i32 signext %a) nounwind {
----------------
dtcxzyw wrote:

```suggestion
define i32 @addiw(i32 signext %a) {
```



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


More information about the llvm-commits mailing list