173
|
1 ; REQUIRES: x86-registered-target
|
|
2 ; RUN: opt %s %loadnewpmbye %loadbye -passes="goodbye" -wave-goodbye -disable-output 2>&1 | FileCheck %s
|
236
|
3 ; RUN: opt %s %loadnewpmbye -passes="goodbye" -wave-goodbye -disable-output 2>&1 | FileCheck %s
|
173
|
4 ; RUN: opt -module-summary %s -o %t.o
|
236
|
5 ; RUN: llvm-lto2 run %t.o %loadbye %loadnewpmbye -wave-goodbye -o %t -r %t.o,somefunk,plx -r %t.o,junk,plx 2>&1 | FileCheck %s
|
|
6 ; RUN: llvm-lto2 run %t.o %loadbye %loadnewpmbye -opt-pipeline="goodbye" -wave-goodbye -o %t -r %t.o,somefunk,plx -r %t.o,junk,plx 2>&1 | FileCheck %s
|
150
|
7 ; REQUIRES: plugins, examples
|
173
|
8 ; UNSUPPORTED: windows
|
150
|
9 ; CHECK: Bye
|
236
|
10 ;
|
|
11 ; Specifying a new PM pass plugin with the old PM is an error.
|
|
12 ; RUN: ! opt %s %loadnewpmbye -goodbye -wave-goodbye -disable-output -enable-new-pm=0 2>&1 | FileCheck %s --check-prefix=ERROR
|
|
13 ; ERROR: load-pass-plugin specified with legacy PM.
|
150
|
14
|
173
|
15 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
16 target triple = "x86_64-unknown-linux-gnu"
|
150
|
17 @junk = global i32 0
|
|
18
|
|
19 define i32* @somefunk() {
|
|
20 ret i32* @junk
|
|
21 }
|
|
22
|