1 # RUN: llvm-mc -filetype=obj -triple riscv32 < %s \
2 # RUN: | llvm-objdump -s - | FileCheck %s
3 # RUN: llvm-mc -filetype=obj -triple riscv64 < %s \
4 # RUN: | llvm-objdump -s - | FileCheck %s
6 # Check that data directives supported by gas are also supported by LLVM MC.
7 # As there was some confusion about whether .half/.word/.dword imply
8 # alignment (see <https://github.com/riscv/riscv-asm-manual/issues/12>), we
9 # are sure to check this.
13 # CHECK: Contents of section .data:
14 # CHECK-NEXT: 0000 deadbeef badcaf11 22334455 66778800
18 .dword 0x8877665544332211
21 # CHECK-NEXT: 0010 deadbeef badcaf11 22334455 66778800
25 .8byte
0x8877665544332211
28 # CHECK-NEXT: 0020 deadbeef badcaf11 22