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-riscv
8 # RV32: AddressSize: 32bit
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)
18 # RV32: Type: Relocatable (0x1)
19 # RV32: Machine: EM_RISCV (0xF3)
25 # RV64: Format: ELF64-riscv
27 # RV64: AddressSize: 64bit
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)
37 # RV64: Type: Relocatable (0x1)
38 # RV64: Machine: EM_RISCV (0xF3)