Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / RISCV / elf-header.s
blob17fbb2fcf84fc42f9bdbfbba05f88f4f15e58935
1 # RUN: llvm-mc %s -filetype=obj -triple=riscv32 | llvm-readobj -h - \
2 # RUN: | FileCheck -check-prefix=RV32 %s
3 # RUN: llvm-mc %s -filetype=obj -triple=riscv64 | llvm-readobj -h - \
4 # RUN: | FileCheck -check-prefix=RV64 %s
6 # RV32: Format: elf32-littleriscv
7 # RV32: Arch: riscv32
8 # RV32: AddressSize: 32bit
9 # RV32: ElfHeader {
10 # RV32: Ident {
11 # RV32: Magic: (7F 45 4C 46)
12 # RV32: Class: 32-bit (0x1)
13 # RV32: DataEncoding: LittleEndian (0x1)
14 # RV32: FileVersion: 1
15 # RV32: OS/ABI: SystemV (0x0)
16 # RV32: ABIVersion: 0
17 # RV32: }
18 # RV32: Type: Relocatable (0x1)
19 # RV32: Machine: EM_RISCV (0xF3)
20 # RV32: Version: 1
21 # RV32: Flags [ (0x0)
22 # RV32: ]
23 # RV32: }
25 # RV64: Format: elf64-littleriscv
26 # RV64: Arch: riscv64
27 # RV64: AddressSize: 64bit
28 # RV64: ElfHeader {
29 # RV64: Ident {
30 # RV64: Magic: (7F 45 4C 46)
31 # RV64: Class: 64-bit (0x2)
32 # RV64: DataEncoding: LittleEndian (0x1)
33 # RV64: FileVersion: 1
34 # RV64: OS/ABI: SystemV (0x0)
35 # RV64: ABIVersion: 0
36 # RV64: }
37 # RV64: Type: Relocatable (0x1)
38 # RV64: Machine: EM_RISCV (0xF3)
39 # RV64: Version: 1
40 # RV64: Flags [ (0x0)
41 # RV64: ]
42 # RV64: }