2 ; RUN: llvm-as %s -o %t1.o
3 ; RUN: llvm-as %S/Inputs/linker-script-symbols-ipo.ll -o %t2.o
4 ; RUN: echo "bar = foo;" > %t.script
6 ;; Check that without linkerscript bar is inlined.
7 ; RUN: ld.lld %t1.o %t2.o -o %t3 -save-temps
8 ; RUN: llvm-objdump --no-print-imm-hex -d %t3 | FileCheck %s --check-prefix=IPO
9 ; IPO: Disassembly of section .text:
11 ; IPO-NEXT: movl $1, %eax
14 ;; Check that LTO does not do IPO for symbols assigned by script.
15 ; RUN: ld.lld %t1.o %t2.o -o %t4 --script %t.script -save-temps
16 ; RUN: llvm-objdump --no-print-imm-hex -d %t4 | FileCheck %s --check-prefix=NOIPO
17 ; NOIPO: Disassembly of section .text:
19 ; NOIPO-NEXT: movl $2, %eax
21 ; NOIPO-NEXT: jmp 0x201160 <foo>
23 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
24 target triple = "x86_64-unknown-linux-gnu"