xref: /llvm-project/llvm/test/tools/gold/X86/disable-verify.ll (revision 6ec8c6fc7b30bb770cf3e454a89ebd2be1bed88e)
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
12target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
13target 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
22define void @f() {
23entry:
24  ret void
25}
26