brintos

brintos / llvm-project-archived public Read only

0
0
Text · 849 B · ece7f09 Raw
33 lines · plain
1# RUN: llvm-mc -filetype=obj -triple riscv32 < %s \2# RUN:     | llvm-objdump -s - | FileCheck %s3# RUN: llvm-mc -filetype=obj -triple riscv64 < %s \4# RUN:     | llvm-objdump -s - | FileCheck %s5 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 imply8# alignment (see <https://github.com/riscv/riscv-asm-manual/issues/12>), we9# are sure to check this.10 11.data12 13# CHECK: Contents of section .data:14# CHECK-NEXT: 0000 deadbeef badcaf11 22334455 6677880015.byte 0xde16.half 0xbead17.word 0xafdcbaef18.dword 0x887766554433221119.byte 020 21# CHECK-NEXT: 0010 deadbeef badcaf11 22334455 6677880022.byte 0xde23.2byte 0xbead24.4byte 0xafdcbaef25.8byte 0x887766554433221126.byte 027 28# CHECK-NEXT: 0020 deadbeef badcaf11 2229.byte 0xde30.short 0xbead31.long 0xafdcbaef32.hword 0x221133