28 lines · plain
1# RUN: llvm-mc -triple=riscv32 -filetype=obj %s | llvm-readelf -Ss - | FileCheck %s2# RUN: llvm-mc -triple=riscv64 -filetype=obj %s | llvm-readelf -Ss - | FileCheck %s3 4 .text5# $x at 0x00006 nop7# $d at 0x00048 .ascii "012"9 .byte 110 .hword 211 .word 412 .single 4.013 .double 8.014 .space 1015 .zero 316 .fill 10, 2, 4217 .org 100, 1218# $x at 0x006419 nop20 21## Capture section index.22# CHECK: [[#TEXT:]]] .text23 24# CHECK: Value Size Type Bind Vis Ndx Name25# CHECK: 00000000 0 NOTYPE LOCAL DEFAULT [[#TEXT]] $x26# CHECK: 00000004 0 NOTYPE LOCAL DEFAULT [[#TEXT]] $d27# CHECK: 00000064 0 NOTYPE LOCAL DEFAULT [[#TEXT]] $x28