|
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 --keep-nops -o %t.out \ |
10 |
| -# RUN: --alt-inst-feature-size=2 | FileCheck %s |
| 9 | +# RUN: llvm-bolt %t.exe --print-normalized --alt-inst-feature-size=2 -o %t.out \ |
| 10 | +# RUN: | FileCheck %s |
11 | 11 |
|
12 | 12 | ## Older kernels used to have padlen field in alt_instr. Check compatibility.
|
13 | 13 |
|
14 | 14 | # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown --defsym PADLEN=1 \
|
15 | 15 | # RUN: %s -o %t.o
|
16 | 16 | # RUN: %clang %cflags -nostdlib %t.o -o %t.exe \
|
17 | 17 | # RUN: -Wl,--image-base=0xffffffff80000000,--no-dynamic-linker,--no-eh-frame-hdr,--no-pie
|
18 |
| -# RUN: llvm-bolt %t.exe --print-normalized --keep-nops --alt-inst-has-padlen \ |
19 |
| -# RUN: -o %t.out | FileCheck %s |
| 18 | +# RUN: llvm-bolt %t.exe --print-normalized --alt-inst-has-padlen -o %t.out \ |
| 19 | +# RUN: | FileCheck %s |
20 | 20 |
|
21 | 21 | ## Check with a larger size of "feature" field in alt_instr.
|
22 | 22 |
|
23 | 23 | # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \
|
24 | 24 | # RUN: --defsym FEATURE_SIZE_4=1 %s -o %t.o
|
25 | 25 | # RUN: %clang %cflags -nostdlib %t.o -o %t.exe \
|
26 | 26 | # RUN: -Wl,--image-base=0xffffffff80000000,--no-dynamic-linker,--no-eh-frame-hdr,--no-pie
|
27 |
| -# RUN: llvm-bolt %t.exe --print-normalized --keep-nops \ |
28 |
| -# RUN: --alt-inst-feature-size=4 -o %t.out | FileCheck %s |
| 27 | +# RUN: llvm-bolt %t.exe --print-normalized --alt-inst-feature-size=4 -o %t.out \ |
| 28 | +# RUN: | FileCheck %s |
29 | 29 |
|
30 | 30 | ## Check that out-of-bounds read is handled properly.
|
31 | 31 |
|
32 |
| -# RUN: not llvm-bolt %t.exe --print-normalized --keep-nops \ |
33 |
| -# RUN: --alt-inst-feature-size=2 -o %t.out |
| 32 | +# RUN: not llvm-bolt %t.exe --print-normalized --alt-inst-feature-size=2 -o %t.out |
34 | 33 |
|
35 | 34 | # CHECK: BOLT-INFO: Linux kernel binary detected
|
36 | 35 | # CHECK: BOLT-INFO: parsed 2 alternative instruction entries
|
|
0 commit comments