[PATCH] D127569: [RISCV]Precommit test of D127568

luxufan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 29 07:06:15 PDT 2022


StephenFan updated this revision to Diff 440995.
StephenFan added a comment.

Use CHECK-NEXT is applicable.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D127569

Files:
  llvm/test/CodeGen/RISCV/unnecessary-code-align.ll


Index: llvm/test/CodeGen/RISCV/unnecessary-code-align.ll
===================================================================
--- /dev/null
+++ llvm/test/CodeGen/RISCV/unnecessary-code-align.ll
@@ -0,0 +1,14 @@
+; RUN: llc -mtriple=riscv64 -filetype=obj -mattr=+c,+relax %s -o - \
+; RUN:     | llvm-readobj -r - | FileCheck %s
+
+; CHECK:      Relocations [
+; CHECK-NEXT:   Section (3) .rela.text {
+; CHECK-NEXT:     0x0 R_RISCV_ALIGN - 0x2
+; CHECK-NEXT:   }
+; CHECK-NEXT: ]
+define i32 @test() #0 {
+entry:
+  ret i32 1
+}
+
+attributes #0 = { nounwind }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127569.440995.patch
Type: text/x-patch
Size: 560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220629/cf9ba145/attachment.bin>


More information about the llvm-commits mailing list