• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; REQUIRES: x86
2; RUN: llvm-as %s -o %t.o
3; RUN: ld.lld %t.o -o %t2 -mllvm -debug-pass=Arguments --no-lto-new-pass-manager \
4; RUN:   2>&1 | FileCheck -check-prefix=DEFAULT-LPM %s
5; RUN: ld.lld %t.o -o %t2 -mllvm -debug-pass=Arguments --no-lto-new-pass-manager \
6; RUN:   -disable-verify 2>&1 | FileCheck -check-prefix=DISABLE-LPM %s
7; RUN: ld.lld %t.o -o %t2 -mllvm -debug-pass=Arguments --no-lto-new-pass-manager \
8; RUN:   --plugin-opt=disable-verify 2>&1 | FileCheck -check-prefix=DISABLE-LPM %s
9; RUN: ld.lld %t.o -o %t2 --lto-new-pass-manager --lto-debug-pass-manager \
10; RUN:   2>&1 | FileCheck -check-prefix=DEFAULT-NPM %s
11; RUN: ld.lld %t.o -o %t2 --lto-new-pass-manager --lto-debug-pass-manager \
12; RUN:   -disable-verify 2>&1 | FileCheck -check-prefix=DISABLE-NPM %s
13; RUN: ld.lld %t.o -o %t2 --lto-new-pass-manager --lto-debug-pass-manager \
14; RUN:   --plugin-opt=disable-verify 2>&1 | FileCheck -check-prefix=DISABLE-NPM %s
15
16target triple = "x86_64-unknown-linux-gnu"
17target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
18
19define void @_start() {
20  ret void
21}
22
23; -disable-verify should disable the verification of bitcode.
24; DEFAULT-LPM:     Pass Arguments: {{.*}} -verify {{.*}} -verify
25; DISABLE-LPM-NOT: Pass Arguments: {{.*}} -verify {{.*}} -verify
26; DEFAULT-NPM: Running pass: VerifierPass
27; DEFAULT-NPM: Running pass: VerifierPass
28; DEFAULT-NPM-NOT: Running pass: VerifierPass
29; DISABLE-NPM-NOT: Running pass: VerifierPass
30