Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / RISCV / mapping-within-section.s
blob15fffe82edd6f0b143044074fa5686835444decc
1 # RUN: llvm-mc -triple=riscv32 -filetype=obj %s | llvm-readelf -Ss - | FileCheck %s
2 # RUN: llvm-mc -triple=riscv64 -filetype=obj %s | llvm-readelf -Ss - | FileCheck %s
4 .text
5 # $x at 0x0000
6 nop
7 # $d at 0x0004
8 .ascii "012"
9 .byte 1
10 .hword 2
11 .word 4
12 .single 4.0
13 .double 8.0
14 .space 10
15 .zero 3
16 .fill 10, 2, 42
17 .org 100, 12
18 # $x at 0x0064
19 nop
21 ## Capture section index.
22 # CHECK: [[#TEXT:]]] .text
24 # CHECK: Value Size Type Bind Vis Ndx Name
25 # CHECK: 00000000 0 NOTYPE LOCAL DEFAULT [[#TEXT]] $x
26 # CHECK: 00000004 0 NOTYPE LOCAL DEFAULT [[#TEXT]] $d
27 # CHECK: 00000064 0 NOTYPE LOCAL DEFAULT [[#TEXT]] $x