mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 13:46:13 +00:00
07ddca829a
Some incoming changes in ThinLTO will break this test. Instead of relying on the heuristic to import, we force the importing to happen with llvm-link. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290736 91177308-0d34-0410-b5e6-96231b3b80d8
26 lines
769 B
LLVM
26 lines
769 B
LLVM
; 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
|
|
|
|
; We can't use llvm-dis here, because it would do the autoupgrade itself.
|
|
|
|
; RUN: llvm-link -summary-index=%t3.bc \
|
|
; RUN: -import=globalfunc1:%p/Inputs/autoupgrade.bc %t.bc \
|
|
; RUN: | llvm-bcanalyzer -dump | FileCheck %s
|
|
|
|
|
|
; 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
|