brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · a825fd9 Raw
52 lines · plain
1; REQUIRES: ppc2;; Test we can infer the e_machine value EM_PPC/EM_PPC64 from a bitcode file.3 4; RUN: split-file %s %t5; RUN: llvm-as %t/32le.ll -o %t/32le.o6; RUN: ld.lld %t/32le.o -o %t/32le7; RUN: llvm-readobj -h %t/32le | FileCheck %s --check-prefix=LE328 9; RUN: llvm-as %t/32be.ll -o %t/32be.o10; RUN: ld.lld %t/32be.o -o %t/32be11; RUN: llvm-readobj -h %t/32be | FileCheck %s --check-prefix=BE3212 13; RUN: llvm-as %t/64.ll -o %t/64.o14; RUN: ld.lld %t/64.o -o %t/6415; RUN: llvm-readobj -h %t/64 | FileCheck %s --check-prefix=LE6416 17; LE32:   Class: 32-bit18; LE32:   DataEncoding: LittleEndian19; LE32: Machine: EM_PPC (20 21; BE32:   Class: 32-bit22; BE32:   DataEncoding: BigEndian23; BE32: Machine: EM_PPC (24 25; LE64:   Class: 64-bit26; LE64:   DataEncoding: LittleEndian27; LE64: Machine: EM_PPC6428 29;--- 32le.ll30target datalayout = "e-m:e-p:32:32-Fn32-i64:64-n32"31target triple = "powerpcle-pc-freebsd"32 33define void @_start() {34  ret void35}36 37;--- 32be.ll38target datalayout = "E-m:e-p:32:32-Fn32-i64:64-n32"39target triple = "powerpc-unknown-linux-gnu"40 41define void @_start() {42  ret void43}44 45;--- 64.ll46target datalayout = "e-m:e-Fn32-i64:64-n32:64-S128-v256:256:256-v512:512:512"47target triple = "powerpc64le-unknown-linux-gnu"48 49define void @_start() {50  ret void51}52