2 ;; Test we can infer the e_machine value EM_HEXAGON from a bitcode file.
4 ; RUN: llvm-as %s -o %t.bc
5 ; RUN: ld.lld %t.bc -o %t
6 ; RUN: llvm-readobj -h %t | FileCheck %s
9 ; CHECK: DataEncoding: LittleEndian
10 ; CHECK: Machine: EM_HEXAGON
12 target 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"
13 target triple = "hexagon-unknown-unknown-elf"
15 define void @_start() {