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

luxufan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 23 01:42:00 PDT 2022


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

Move file to CodeGen test


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,15 @@
+; RUN: llc -mtriple=riscv64 -filetype=obj -mattr=+c,+relax %s -o - \
+; RUN:     | llvm-readobj -r - | FileCheck %s
+
+; CHECK: Relocations [
+; CHECK:   Section (3) .rela.text {
+; CHECK:     0x0 R_RISCV_ALIGN - 0x2
+; CHECK:   }
+; CHECK: ]
+define i32 @test() #0 {
+entry:
+  ret i32 1
+}
+
+attributes #0 = { nounwind }
+


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127569.439272.patch
Type: text/x-patch
Size: 537 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220623/a5da5622/attachment-0001.bin>


More information about the llvm-commits mailing list