19 lines · plain
1; REQUIRES: systemz2;; Test we can infer the e_machine value EM_S390 from a bitcode file.3 4; RUN: llvm-as %s -o %t.o5; RUN: ld.lld %t.o -o %t6; RUN: llvm-readobj -h %t | FileCheck %s7 8; CHECK: Class: 64-bit9; CHECK: DataEncoding: BigEndian10; CHECK: Machine: EM_S39011 12target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"13target triple = "s390x-unknown-linux-gnu"14 15define void @_start() {16entry:17 ret void18}19