1 ; RUN: llvm-as %S/Inputs/opaque-pointers.ll -o %t-opaque.bc
2 ; RUN: llvm-lto2 run -o %t-lto.bc %S/Inputs/typed.bc %t-opaque.bc -save-temps \
3 ; RUN: -r %S/Inputs/typed.bc,call_foo,px -r %S/Inputs/typed.bc,foo,l \
4 ; RUN: -r %t-opaque.bc,foo,px
5 ; RUN: opt -S -o - %t-lto.bc.0.4.opt.bc | FileCheck %s
7 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
8 target triple = "x86_64-unknown-linux-gnu"
10 declare i64 @foo(i64* %p);
12 define i64 @call_foo(i64* %p) {
13 ; CHECK-LABEL: define i64 @call_foo(ptr nocapture readonly %p) local_unnamed_addr #0 {
14 ; CHECK-NEXT: %t.i = load i64, ptr %p, align 8
15 %t = call i64 @foo(i64* %p)