xref: /llvm-project/lld/test/ELF/lto/hexagon.ll (revision aa4dfba522538019740268bd0c018e1674adb1c9)
1; REQUIRES: hexagon
2;; Test we can infer the e_machine value EM_HEXAGON from a bitcode file.
3
4; RUN: llvm-as %s -o %t.bc
5; RUN: ld.lld %t.bc -o %t
6; RUN: llvm-readobj -h %t | FileCheck %s
7
8; CHECK:   Class: 32-bit
9; CHECK:   DataEncoding: LittleEndian
10; CHECK: Machine: EM_HEXAGON
11
12target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"
13target triple = "hexagon-unknown-unknown-elf"
14
15define void @_start() {
16  ret void
17}
18