| 1 |
; RUN: llvm-as %s -o %t.o |
| 2 |
; REQUIRES: asserts |
| 3 |
|
| 4 |
; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \ |
| 5 |
; RUN: --plugin-opt=disable-verify --plugin-opt=debug-pass-manager \ |
| 6 |
; RUN: -shared %t.o -o %t2.o 2>&1 | FileCheck %s |
| 7 |
|
| 8 |
; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \ |
| 9 |
; RUN: --plugin-opt=debug-pass-manager \ |
| 10 |
; RUN: -shared %t.o -o %t2.o 2>&1 | FileCheck %s -check-prefix=VERIFY |
| 11 |
|
| 12 |
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" |
| 13 |
target triple = "x86_64-unknown-linux-gnu" |
| 14 |
|
| 15 |
; -disable-verify should disable output verification from the optimization |
| 16 |
; pipeline. |
| 17 |
; CHECK-NOT: VerifierPass |
| 18 |
|
| 19 |
; VERIFY: Running pass: VerifierPass on [module] |
| 20 |
; VERIFY: Running pass: VerifierPass on [module] |
| 21 |
|
| 22 |
define void @f() { |
| 23 |
entry: |
| 24 |
ret void |
| 25 |
} |