xref: /llvm-project/llvm/test/Feature/load_extension.ll (revision c1b4240322bfaa43b7f02ca58cf9fe52744884b9)
1; REQUIRES: x86-registered-target
2; RUN: opt %s %loadnewpmbye %loadbye -passes="goodbye" -wave-goodbye -disable-output 2>&1 | FileCheck %s
3; RUN: opt %s %loadnewpmbye -passes="goodbye" -wave-goodbye -disable-output 2>&1 | FileCheck %s
4; RUN: opt -module-summary %s -o %t.o
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
7; REQUIRES: plugins, examples
8; UNSUPPORTED: target={{.*windows.*}}
9; CHECK: Bye
10
11target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
12target triple = "x86_64-unknown-linux-gnu"
13@junk = global i32 0
14
15define ptr @somefunk() {
16  ret ptr @junk
17}
18
19