[PATCH] D114804: [RISCV] Align odd address in assemble code

Jessica Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 30 08:24:00 PST 2021


jrtc27 added inline comments.


================
Comment at: llvm/test/MC/RISCV/align-odd.s:1
+# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=-relax %s -o %t
+# RUN: llvm-objdump -d %t | FileCheck %s
----------------
+relax? +c? (and maybe riscv32?)


================
Comment at: llvm/test/MC/RISCV/align-odd.s:2
+# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=-relax %s -o %t
+# RUN: llvm-objdump -d %t | FileCheck %s
+
----------------
Pipe to llvm-objdump, don't needlessly create temporary files


================
Comment at: llvm/test/MC/RISCV/align-odd.s:4
+
+#       CHECK:000000000000000 <.text>:
+#  CHECK-NEXT:       0: 01 00
----------------
Weird formatting in this whole block, and I don't see why we need this particular CHECK line


================
Comment at: llvm/test/MC/RISCV/align-odd.s:12
+
+  .text
+  .byte 1
----------------
.text is the default

Don't indent assembly when there are no labels involved


================
Comment at: llvm/test/MC/RISCV/align-odd.s:14
+  .byte 1
+  .word 0
+  .p2align 3
----------------
This only ever tests odd->even, it doesn't test 1mod4->multiple of 4 for !RVC


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D114804



More information about the llvm-commits mailing list