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

luxufan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 11 07:01:01 PDT 2022


StephenFan created this revision.
Herald added subscribers: sunshaoce, VincentWu, luke957, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, arichardson.
Herald added a project: All.
StephenFan requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D127569

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


Index: llvm/test/MC/RISCV/unnecessary-code-align.ll
===================================================================
--- /dev/null
+++ llvm/test/MC/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.436140.patch
Type: text/x-patch
Size: 527 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220611/8843b1b2/attachment.bin>


More information about the llvm-commits mailing list