2020-03-26 18:09:13 +01:00
|
|
|
; REQUIRES: x86-registered-target
|
2020-01-03 15:38:27 +01:00
|
|
|
; RUN: opt %s %loadbye -goodbye -wave-goodbye -disable-output 2>&1 | FileCheck %s
|
2020-03-26 18:09:13 +01:00
|
|
|
; RUN: opt %s %loadnewpmbye %loadbye -passes="goodbye" -wave-goodbye -disable-output 2>&1 | FileCheck %s
|
|
|
|
; RUN: opt -module-summary %s -o %t.o
|
|
|
|
; RUN: llvm-lto2 run %t.o %loadbye -wave-goodbye -o %t -r %t.o,somefunk,plx -r %t.o,junk,plx 2>&1 | FileCheck %s
|
|
|
|
; RUN: llvm-lto2 run %t.o %loadbye %loadnewpmbye -wave-goodbye -use-new-pm -o %t -r %t.o,somefunk,plx -r %t.o,junk,plx 2>&1 | FileCheck %s
|
|
|
|
; RUN: llvm-lto2 run %t.o %loadbye %loadnewpmbye -opt-pipeline="goodbye" -wave-goodbye -use-new-pm -o %t -r %t.o,somefunk,plx -r %t.o,junk,plx 2>&1 | FileCheck %s
|
2019-06-08 17:37:47 +02:00
|
|
|
; REQUIRES: plugins, examples
|
2020-05-12 10:54:51 +02:00
|
|
|
; UNSUPPORTED: windows
|
2019-06-08 17:37:47 +02:00
|
|
|
; CHECK: Bye
|
|
|
|
|
2020-03-26 18:09:13 +01:00
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
2019-06-08 17:37:47 +02:00
|
|
|
@junk = global i32 0
|
|
|
|
|
|
|
|
define i32* @somefunk() {
|
|
|
|
ret i32* @junk
|
|
|
|
}
|
|
|
|
|