|
6 | 6 | # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o
|
7 | 7 | # RUN: %clang %cflags -nostdlib %t.o -o %t.exe \
|
8 | 8 | # RUN: -Wl,--image-base=0xffffffff80000000,--no-dynamic-linker,--no-eh-frame-hdr,--no-pie
|
9 |
| -# RUN: llvm-bolt %t.exe --print-normalized --alt-inst-feature-size=2 -o %t.out \ |
| 9 | +# RUN: llvm-bolt %t.exe --print-cfg --alt-inst-feature-size=2 -o %t.out \ |
10 | 10 | # RUN: | FileCheck %s
|
11 | 11 |
|
12 | 12 | ## Older kernels used to have padlen field in alt_instr. Check compatibility.
|
|
15 | 15 | # RUN: %s -o %t.padlen.o
|
16 | 16 | # RUN: %clang %cflags -nostdlib %t.padlen.o -o %t.padlen.exe \
|
17 | 17 | # RUN: -Wl,--image-base=0xffffffff80000000,--no-dynamic-linker,--no-eh-frame-hdr,--no-pie
|
18 |
| -# RUN: llvm-bolt %t.padlen.exe --print-normalized --alt-inst-has-padlen -o %t.padlen.out \ |
| 18 | +# RUN: llvm-bolt %t.padlen.exe --print-cfg --alt-inst-has-padlen -o %t.padlen.out \ |
19 | 19 | # RUN: | FileCheck %s
|
20 | 20 |
|
21 | 21 | ## Check with a larger size of "feature" field in alt_instr.
|
|
24 | 24 | # RUN: --defsym FEATURE_SIZE_4=1 %s -o %t.fs4.o
|
25 | 25 | # RUN: %clang %cflags -nostdlib %t.fs4.o -o %t.fs4.exe \
|
26 | 26 | # RUN: -Wl,--image-base=0xffffffff80000000,--no-dynamic-linker,--no-eh-frame-hdr,--no-pie
|
27 |
| -# RUN: llvm-bolt %t.fs4.exe --print-normalized --alt-inst-feature-size=4 -o %t.fs4.out \ |
| 27 | +# RUN: llvm-bolt %t.fs4.exe --print-cfg --alt-inst-feature-size=4 -o %t.fs4.out \ |
28 | 28 | # RUN: | FileCheck %s
|
29 | 29 |
|
30 | 30 | ## Check that out-of-bounds read is handled properly.
|
|
33 | 33 |
|
34 | 34 | ## Check that BOLT automatically detects structure fields in .altinstructions.
|
35 | 35 |
|
36 |
| -# RUN: llvm-bolt %t.exe --print-normalized -o %t.out | FileCheck %s |
37 |
| -# RUN: llvm-bolt %t.exe --print-normalized -o %t.padlen.out | FileCheck %s |
38 |
| -# RUN: llvm-bolt %t.exe --print-normalized -o %t.fs4.out | FileCheck %s |
| 36 | +# RUN: llvm-bolt %t.exe --print-cfg -o %t.out | FileCheck %s |
| 37 | +# RUN: llvm-bolt %t.exe --print-cfg -o %t.padlen.out | FileCheck %s |
| 38 | +# RUN: llvm-bolt %t.exe --print-cfg -o %t.fs4.out | FileCheck %s |
39 | 39 |
|
40 | 40 | # CHECK: BOLT-INFO: Linux kernel binary detected
|
41 | 41 | # CHECK: BOLT-INFO: parsed 2 alternative instruction entries
|
|
0 commit comments