comparison llvm/test/BugPoint/unsymbolized.ll @ 221:79ff65ed7e25

LLVM12 Original
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 15 Jun 2021 19:15:29 +0900
parents 1d019706d866
children 1f2b6ac9f198
comparison
equal deleted inserted replaced
220:42394fc6a535 221:79ff65ed7e25
1 ; REQUIRES: plugins 1 ; REQUIRES: plugins
2 ; RUN: echo "import sys" > %t.py 2 ; RUN: echo "import sys" > %t.py
3 ; RUN: echo "print('args = ' + str(sys.argv))" >> %t.py 3 ; RUN: echo "print('args = ' + str(sys.argv))" >> %t.py
4 ; RUN: echo "exit(1)" >> %t.py 4 ; RUN: echo "exit(1)" >> %t.py
5 ; RUN: not bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -opt-command=%python -opt-args %t.py | FileCheck %s 5 ; RUN: not bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -bugpoint-crashcalls -opt-command=%python -opt-args %t.py | FileCheck %s
6 ; RUN: not --crash opt -load %llvmshlibdir/BugpointPasses%shlibext %s -bugpoint-crashcalls -disable-symbolication 2>&1 | FileCheck --check-prefix=CRASH %s 6 ; RUN: not --crash opt -enable-new-pm=0 -load %llvmshlibdir/BugpointPasses%pluginext %s -bugpoint-crashcalls -disable-symbolication 2>&1 | FileCheck --check-prefix=CRASH %s
7 ; RUN: not bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %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 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
8 8
9 ; Test that bugpoint disables symbolication on the opt tool to reduce runtime overhead when opt crashes 9 ; Test that bugpoint disables symbolication on the opt tool to reduce runtime overhead when opt crashes
10 ; CHECK: args = {{.*}}'-disable-symbolication' 10 ; CHECK: args = {{.*}}'-disable-symbolication'
11 11
12 ; Test that opt, when it crashes & is passed -disable-symbolication, doesn't symbolicate. 12 ; Test that opt, when it crashes & is passed -disable-symbolication, doesn't symbolicate.