[PATCH] D128806: [RISCV] Fix wrong position of prologue_end

Jessica Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 29 07:30:45 PDT 2022


jrtc27 added a comment.

I don't understand how this is a problem for the current test, https://godbolt.org/z/YohW4nn87 does not produce the assembly you claim it does



================
Comment at: llvm/test/DebugInfo/RISCV/dbg-prolog-end.ll:4-5
+; RUN: llvm-objdump -d %t.o | FileCheck %s --check-prefixes=DASM
+target datalayout = "e-m:e-p:32:32-i64:64-n32-S128"
+target triple = "riscv32"
+
----------------
Redundant (and get in the way of testing RV64)


================
Comment at: llvm/test/DebugInfo/RISCV/dbg-prolog-end.ll:7-19
+; the test, need use clang --target=riscv32 -g -S x.c -o x.s
+; can see the assemble
+; int global_a = 10;
+; __attribute__((noinline)) int foo() {
+;   int a = global_a;
+;   int b = 10;
+;   return a + b;
----------------
The IR is simple, C isn't needed


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128806/new/

https://reviews.llvm.org/D128806



More information about the llvm-commits mailing list