brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 8626950 Raw
49 lines · plain
1# REQUIRES: x862# RUN: rm -rf %t; split-file %s %t3 4# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/foo.o %t/foo.s5# RUN: %lld -dylib -o %t/libfoo.dylib %t/foo.o6 7# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/bar.o %t/bar.s8# RUN: llvm-ar csr  %t/bar.a %t/bar.o9 10# RUN: llvm-as %t/baz.ll -o %t/baz.o11 12# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/main.o %t/main.s13 14# RUN: %lld %t/main.o %t/baz.o %t/bar.a %t/libfoo.dylib -lSystem -o /dev/null -t | FileCheck -DPATH='%t' %s15 16# CHECK-DAG: bar.a(bar.o)17# CHECK-DAG: [[PATH]]/main.o18# CHECK-DAG: [[PATH]]/baz.o19# CHECK-DAG: [[PATH]]/libfoo.dylib20# CHECK-DAG: {{.*}}/usr/lib{{[/\\]}}libSystem.tbd21 22#--- foo.s23.globl __Z3foo24__Z3foo:25  ret26 27#--- bar.s28.globl _bar29_bar:30  callq __Z3foo31  ret32 33#--- baz.ll34 35target triple = "x86_64-apple-macosx10.15.0"36target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"37 38define void @baz() {39  ret void40}41 42#--- main.s43.globl _main44_main:45  callq _bar46  callq __Z3foo47  callq _baz48  ret49