18 lines · plain
1; REQUIRES: hexagon2;; Test we can infer the e_machine value EM_HEXAGON from a bitcode file.3 4; RUN: llvm-as %s -o %t.bc5; RUN: ld.lld %t.bc -o %t6; RUN: llvm-readobj -h %t | FileCheck %s7 8; CHECK: Class: 32-bit9; CHECK: DataEncoding: LittleEndian10; CHECK: Machine: EM_HEXAGON11 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 void17}18