2 ;; Test we can infer the e_machine value EM_SPARCV9 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: BigEndian
10 ; CHECK: Machine: EM_SPARCV9
12 target datalayout = "E-m:e-i64:64-n32:64-S128"
13 target triple = "sparc64-unknown-elf"
15 define void @_start() {