brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · da12a14 Raw
47 lines · plain
1# RUN: llvm-mc %s -filetype=obj -triple=riscv32be | llvm-readobj -h - \2# RUN:     | FileCheck -check-prefix=RV32BE %s3# RUN: llvm-mc %s -filetype=obj -triple=riscv64be | llvm-readobj -h - \4# RUN:     | FileCheck -check-prefix=RV64BE %s5 6# Test that RISC-V big-endian targets produce correct ELF headers7 8# RV32BE: Format: elf32-bigriscv9# RV32BE: Arch: riscv3210# RV32BE: AddressSize: 32bit11# RV32BE: ElfHeader {12# RV32BE:   Ident {13# RV32BE:     Magic: (7F 45 4C 46)14# RV32BE:     Class: 32-bit (0x1)15# RV32BE:     DataEncoding: BigEndian (0x2)16# RV32BE:     FileVersion: 117# RV32BE:     OS/ABI: SystemV (0x0)18# RV32BE:     ABIVersion: 019# RV32BE:   }20# RV32BE:   Type: Relocatable (0x1)21# RV32BE:   Machine: EM_RISCV (0xF3)22# RV32BE:   Version: 123# RV32BE:   Flags [ (0x0)24# RV32BE:   ]25# RV32BE: }26 27# RV64BE: Format: elf64-bigriscv28# RV64BE: Arch: riscv6429# RV64BE: AddressSize: 64bit30# RV64BE: ElfHeader {31# RV64BE:   Ident {32# RV64BE:     Magic: (7F 45 4C 46)33# RV64BE:     Class: 64-bit (0x2)34# RV64BE:     DataEncoding: BigEndian (0x2)35# RV64BE:     FileVersion: 136# RV64BE:     OS/ABI: SystemV (0x0)37# RV64BE:     ABIVersion: 038# RV64BE:   }39# RV64BE:   Type: Relocatable (0x1)40# RV64BE:   Machine: EM_RISCV (0xF3)41# RV64BE:   Version: 142# RV64BE:   Flags [ (0x0)43# RV64BE:   ]44# RV64BE: }45 46nop47