[llvm] [clang] [RISCV] Support constraint "s" (PR #80201)

Kito Cheng via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 31 23:49:34 PST 2024


================
@@ -0,0 +1,76 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -mtriple=riscv32 -relocation-model=static < %s | FileCheck %s --check-prefix=RV32
+; RUN: llc -mtriple=riscv64 -relocation-model=pic < %s | FileCheck %s --check-prefix=RV64
+
+ at var = external dso_local global i32, align 4
+ at a = external global [2 x [2 x i32]], align 4
+
+define dso_local void @test() {
+; CHECK-LABEL: test:
+; CHECK:       # %bb.0: # %entry
+; CHECK-NEXT:    #APP
+; CHECK-NEXT:    # var a+12 test
+; CHECK-NEXT:    #NO_APP
+; CHECK-NEXT:    ret{{[l|q]}}
----------------
kito-cheng wrote:

I don't see any line check with `CHECK`? maybe you forgot to drop after regen?

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


More information about the cfe-commits mailing list