annotate llvm/test/BugPoint/unsymbolized.ll @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents 1f2b6ac9f198
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 ; REQUIRES: plugins
anatofuz
parents:
diff changeset
2 ; RUN: echo "import sys" > %t.py
anatofuz
parents:
diff changeset
3 ; RUN: echo "print('args = ' + str(sys.argv))" >> %t.py
anatofuz
parents:
diff changeset
4 ; RUN: echo "exit(1)" >> %t.py
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
5 ; RUN: not bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -bugpoint-crashcalls -opt-command=%python -opt-args %t.py | FileCheck %s
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 221
diff changeset
6 ; RUN: not --crash opt -bugpoint-enable-legacy-pm -load %llvmshlibdir/BugpointPasses%pluginext %s -bugpoint-crashcalls -disable-symbolication 2>&1 | FileCheck --check-prefix=CRASH %s
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
7 ; RUN: not bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -bugpoint-crashcalls -opt-command=%t.non.existent.opt.binary -opt-args %t.py 2>&1 | FileCheck %s --check-prefix=BAD-OPT
150
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 ; Test that bugpoint disables symbolication on the opt tool to reduce runtime overhead when opt crashes
anatofuz
parents:
diff changeset
10 ; CHECK: args = {{.*}}'-disable-symbolication'
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 ; Test that opt, when it crashes & is passed -disable-symbolication, doesn't symbolicate.
anatofuz
parents:
diff changeset
13 ; In theory this test should maybe be in test/tools/opt or
anatofuz
parents:
diff changeset
14 ; test/Transforms, but since there doesn't seem to be another convenient way to
anatofuz
parents:
diff changeset
15 ; crash opt, apart from the BugpointPasses dynamic plugin, this is the spot for
anatofuz
parents:
diff changeset
16 ; now.
anatofuz
parents:
diff changeset
17 ; CRASH-NOT: Signals.inc
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 ; BAD-OPT: Specified `opt' binary does not exist: {{.*}}non.existent.opt.binary
anatofuz
parents:
diff changeset
20 define void @f() {
anatofuz
parents:
diff changeset
21 call void @f()
anatofuz
parents:
diff changeset
22 ret void
anatofuz
parents:
diff changeset
23 }