18 lines · plain
1; REQUIRES: sparc2;; Test we can infer the e_machine value EM_SPARCV9 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: 64-bit9; CHECK: DataEncoding: BigEndian10; CHECK: Machine: EM_SPARCV911 12target datalayout = "E-m:e-i64:64-n32:64-S128"13target triple = "sparc64-unknown-elf"14 15define void @_start() {16 ret void17}18