2016-08-14 08:01:27 +08:00
|
|
|
; Verify that auto-upgrading intrinsics works with Lazy loaded bitcode
|
|
|
|
; Do setup work for all below tests: generate bitcode and combined index
|
|
|
|
; RUN: opt -module-summary %s -o %t.bc
|
2016-12-30 09:15:50 +08:00
|
|
|
; RUN: llvm-lto -thinlto-action=thinlink -o %t3.bc %t.bc %p/Inputs/autoupgrade.bc
|
2016-08-14 08:01:27 +08:00
|
|
|
|
|
|
|
; We can't use llvm-dis here, because it would do the autoupgrade itself.
|
|
|
|
|
2016-12-30 08:45:26 +08:00
|
|
|
; RUN: llvm-link -summary-index=%t3.bc \
|
|
|
|
; RUN: -import=globalfunc1:%p/Inputs/autoupgrade.bc %t.bc \
|
|
|
|
; RUN: | llvm-bcanalyzer -dump | FileCheck %s
|
|
|
|
|
|
|
|
|
2016-08-14 08:01:27 +08:00
|
|
|
; CHECK-NOT: 'llvm.invariant.start'
|
|
|
|
; CHECK: record string = 'llvm.invariant.start.p0i8'
|
|
|
|
; CHECK-NOT: 'llvm.invariant.start'
|
|
|
|
|
|
|
|
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
target triple = "x86_64-apple-macosx10.11.0"
|
|
|
|
|
|
|
|
define i32 @main() #0 {
|
|
|
|
entry:
|
|
|
|
call void (...) @globalfunc1()
|
|
|
|
ret i32 0
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @globalfunc1(...) #1
|