annotate llvm/test/Feature/load_extension.ll @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 79ff65ed7e25
children 1f2b6ac9f198
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1 ; REQUIRES: x86-registered-target
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
2 ; RUN: opt %s %loadnewpmbye %loadbye -passes="goodbye" -wave-goodbye -disable-output 2>&1 | FileCheck %s
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
3 ; RUN: opt %s %loadnewpmbye -passes="goodbye" -wave-goodbye -disable-output 2>&1 | FileCheck %s
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
4 ; RUN: opt -module-summary %s -o %t.o
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
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
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
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
anatofuz
parents:
diff changeset
7 ; REQUIRES: plugins, examples
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
8 ; UNSUPPORTED: windows
150
anatofuz
parents:
diff changeset
9 ; CHECK: Bye
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
10 ;
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
11 ; Specifying a new PM pass plugin with the old PM is an error.
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
12 ; RUN: ! opt %s %loadnewpmbye -goodbye -wave-goodbye -disable-output -enable-new-pm=0 2>&1 | FileCheck %s --check-prefix=ERROR
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
13 ; ERROR: load-pass-plugin specified with legacy PM.
150
anatofuz
parents:
diff changeset
14
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
15 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
16 target triple = "x86_64-unknown-linux-gnu"
150
anatofuz
parents:
diff changeset
17 @junk = global i32 0
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 define i32* @somefunk() {
anatofuz
parents:
diff changeset
20 ret i32* @junk
anatofuz
parents:
diff changeset
21 }
anatofuz
parents:
diff changeset
22