[PATCH] D153260: [RISCV][MC] Implement mapping symbols
Alan Zhao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 28 17:27:01 PDT 2023
ayzhao added a comment.
This change causes the BOLT RISCV tests to fail (https://crbug.com/1467585):
[28/29] Running the BOLT regression tests
llvm-lit: /usr/local/google/home/ayzhao/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:487: note: using clang: /usr/local/google/home/ayzhao/src/llvm-project/build/bin/clang
llvm-lit: /usr/local/google/home/ayzhao/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:487: note: using ld.lld: /usr/local/google/home/ayzhao/src/llvm-project/build/bin/ld.lld
FAIL: BOLT :: RISCV/reloc-abs.s (1 of 314)
******************** TEST 'BOLT :: RISCV/reloc-abs.s' FAILED ********************
Script:
--
: 'RUN: at line 1'; /usr/local/google/home/ayzhao/src/llvm-project/build/bin/clang --target=x86_64-linux -fuse-ld=lld -Wl,--unresolved-symbols=ignore-all --target=riscv64 -nostdlib -ffreestanding -Wl,--no-relax,--emit-relocs -Wl,--defsym='__global_pointer$'=0x2800 -o /usr/local/google/home/ayzhao/src/llvm-project/build/tools/bolt/test/RISCV/Output/reloc-abs.s.tmp /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-abs.s
: 'RUN: at line 2'; /usr/local/google/home/ayzhao/src/llvm-project/build/bin/llvm-bolt --print-cfg --print-only=_start -o /dev/null /usr/local/google/home/ayzhao/src/llvm-project/build/tools/bolt/test/RISCV/Output/reloc-abs.s.tmp | /usr/local/google/home/ayzhao/src/llvm-project/build/bin/FileCheck /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-abs.s
--
Exit Code: 1
Command Output (stderr):
--
clang: warning: argument unused during compilation: '-ffreestanding' [-Wunused-command-line-argument]
/usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-abs.s:14:11: error: CHECK: expected string not found in input
// CHECK: Binary Function "_start" after building cfg {
^
<stdin>:1:1: note: scanning from here
BOLT-INFO: Target architecture: riscv64
^
<stdin>:8:1: note: possible intended match here
Binary Function "$x.1/1(*2)" after building cfg {
^
Input file: <stdin>
Check file: /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-abs.s
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: BOLT-INFO: Target architecture: riscv64
check:14'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
2: BOLT-INFO: BOLT version: a0d8a53c7d0e6ca1c94b5d5c4a65790dd5705ef8
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3: BOLT-INFO: first alloc address is 0x10000
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4: BOLT-INFO: creating new program header table at address 0x210000, offset 0x200000
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5: BOLT-INFO: enabling relocation mode
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6: BOLT-INFO: static input executable detected
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7: BOLT-INFO: disabling -align-macro-fusion on non-x86 platform
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8: Binary Function "$x.1/1(*2)" after building cfg {
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:14'1 ? possible intended match
9: All names : $x.1/1
check:14'0 ~~~~~~~~~~~~~~~~~~~~
10: _start
check:14'0 ~~~~~~~~
11: Number : 1
check:14'0 ~~~~~~~~~~~~
12: State : CFG constructed
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
13: Address : 0x11190
check:14'0 ~~~~~~~~~~~~~~~~~~~
.
.
.
>>>>>>
--
********************
FAIL: BOLT :: RISCV/reloc-pcrel.s (2 of 314)
******************** TEST 'BOLT :: RISCV/reloc-pcrel.s' FAILED ********************
Script:
--
: 'RUN: at line 1'; /usr/local/google/home/ayzhao/src/llvm-project/build/bin/clang --target=x86_64-linux -fuse-ld=lld -Wl,--unresolved-symbols=ignore-all --target=riscv64 -nostdlib -ffreestanding -Wl,--no-relax,--emit-relocs -o /usr/local/google/home/ayzhao/src/llvm-project/build/tools/bolt/test/RISCV/Output/reloc-pcrel.s.tmp /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-pcrel.s
: 'RUN: at line 2'; /usr/local/google/home/ayzhao/src/llvm-project/build/bin/llvm-bolt --print-cfg --print-only=_start -o /dev/null /usr/local/google/home/ayzhao/src/llvm-project/build/tools/bolt/test/RISCV/Output/reloc-pcrel.s.tmp | /usr/local/google/home/ayzhao/src/llvm-project/build/bin/FileCheck /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-pcrel.s
--
Exit Code: 1
Command Output (stderr):
--
clang: warning: argument unused during compilation: '-ffreestanding' [-Wunused-command-line-argument]
/usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-pcrel.s:14:11: error: CHECK: expected string not found in input
// CHECK: Binary Function "_start" after building cfg {
^
<stdin>:1:1: note: scanning from here
BOLT-INFO: Target architecture: riscv64
^
<stdin>:8:1: note: possible intended match here
Binary Function "$x.1/1(*2)" after building cfg {
^
Input file: <stdin>
Check file: /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-pcrel.s
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: BOLT-INFO: Target architecture: riscv64
check:14'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
2: BOLT-INFO: BOLT version: a0d8a53c7d0e6ca1c94b5d5c4a65790dd5705ef8
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3: BOLT-INFO: first alloc address is 0x10000
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4: BOLT-INFO: creating new program header table at address 0x210000, offset 0x200000
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5: BOLT-INFO: enabling relocation mode
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6: BOLT-INFO: static input executable detected
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7: BOLT-INFO: disabling -align-macro-fusion on non-x86 platform
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8: Binary Function "$x.1/1(*2)" after building cfg {
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:14'1 ? possible intended match
9: All names : $x.1/1
check:14'0 ~~~~~~~~~~~~~~~~~~~~
10: _start
check:14'0 ~~~~~~~~
11: Number : 1
check:14'0 ~~~~~~~~~~~~
12: State : CFG constructed
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
13: Address : 0x11190
check:14'0 ~~~~~~~~~~~~~~~~~~~
.
.
.
>>>>>>
--
********************
FAIL: BOLT :: RISCV/reloc-rvc-jump.s (3 of 314)
******************** TEST 'BOLT :: RISCV/reloc-rvc-jump.s' FAILED ********************
Script:
--
: 'RUN: at line 1'; /usr/local/google/home/ayzhao/src/llvm-project/build/bin/clang --target=x86_64-linux -fuse-ld=lld -Wl,--unresolved-symbols=ignore-all --target=riscv64 -nostdlib -ffreestanding -Wl,--no-relax,--emit-relocs -o /usr/local/google/home/ayzhao/src/llvm-project/build/tools/bolt/test/RISCV/Output/reloc-rvc-jump.s.tmp /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-rvc-jump.s
: 'RUN: at line 2'; /usr/local/google/home/ayzhao/src/llvm-project/build/bin/llvm-bolt --print-cfg --print-only=_start -o /dev/null /usr/local/google/home/ayzhao/src/llvm-project/build/tools/bolt/test/RISCV/Output/reloc-rvc-jump.s.tmp | /usr/local/google/home/ayzhao/src/llvm-project/build/bin/FileCheck /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-rvc-jump.s
--
Exit Code: 1
Command Output (stderr):
--
clang: warning: argument unused during compilation: '-ffreestanding' [-Wunused-command-line-argument]
/usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-rvc-jump.s:8:11: error: CHECK: expected string not found in input
// CHECK: Binary Function "_start" after building cfg {
^
<stdin>:1:1: note: scanning from here
BOLT-INFO: Target architecture: riscv64
^
<stdin>:8:1: note: possible intended match here
Binary Function "$x.0/1(*2)" after building cfg {
^
Input file: <stdin>
Check file: /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-rvc-jump.s
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: BOLT-INFO: Target architecture: riscv64
check:8'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
2: BOLT-INFO: BOLT version: a0d8a53c7d0e6ca1c94b5d5c4a65790dd5705ef8
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3: BOLT-INFO: first alloc address is 0x10000
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4: BOLT-INFO: creating new program header table at address 0x210000, offset 0x200000
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5: BOLT-INFO: enabling relocation mode
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6: BOLT-INFO: static input executable detected
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7: BOLT-INFO: disabling -align-macro-fusion on non-x86 platform
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8: Binary Function "$x.0/1(*2)" after building cfg {
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:8'1 ? possible intended match
9: All names : $x.0/1
check:8'0 ~~~~~~~~~~~~~~~~~~~~
10: _start
check:8'0 ~~~~~~~~
11: Number : 1
check:8'0 ~~~~~~~~~~~~
12: State : CFG constructed
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
13: Address : 0x11158
check:8'0 ~~~~~~~~~~~~~~~~~~~
.
.
.
>>>>>>
--
********************
FAIL: BOLT :: RISCV/reloc-rvc-branch.s (4 of 314)
******************** TEST 'BOLT :: RISCV/reloc-rvc-branch.s' FAILED ********************
Script:
--
: 'RUN: at line 1'; /usr/local/google/home/ayzhao/src/llvm-project/build/bin/clang --target=x86_64-linux -fuse-ld=lld -Wl,--unresolved-symbols=ignore-all --target=riscv64 -nostdlib -ffreestanding -Wl,--no-relax,--emit-relocs -o /usr/local/google/home/ayzhao/src/llvm-project/build/tools/bolt/test/RISCV/Output/reloc-rvc-branch.s.tmp /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-rvc-branch.s
: 'RUN: at line 2'; /usr/local/google/home/ayzhao/src/llvm-project/build/bin/llvm-bolt --print-cfg --print-only=_start -o /dev/null /usr/local/google/home/ayzhao/src/llvm-project/build/tools/bolt/test/RISCV/Output/reloc-rvc-branch.s.tmp | /usr/local/google/home/ayzhao/src/llvm-project/build/bin/FileCheck /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-rvc-branch.s
--
Exit Code: 1
Command Output (stderr):
--
clang: warning: argument unused during compilation: '-ffreestanding' [-Wunused-command-line-argument]
/usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-rvc-branch.s:8:11: error: CHECK: expected string not found in input
// CHECK: Binary Function "_start" after building cfg {
^
<stdin>:1:1: note: scanning from here
BOLT-INFO: Target architecture: riscv64
^
<stdin>:8:1: note: possible intended match here
Binary Function "$x.0/1(*2)" after building cfg {
^
Input file: <stdin>
Check file: /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-rvc-branch.s
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: BOLT-INFO: Target architecture: riscv64
check:8'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
2: BOLT-INFO: BOLT version: a0d8a53c7d0e6ca1c94b5d5c4a65790dd5705ef8
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3: BOLT-INFO: first alloc address is 0x10000
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4: BOLT-INFO: creating new program header table at address 0x210000, offset 0x200000
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5: BOLT-INFO: enabling relocation mode
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6: BOLT-INFO: static input executable detected
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7: BOLT-INFO: disabling -align-macro-fusion on non-x86 platform
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8: Binary Function "$x.0/1(*2)" after building cfg {
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:8'1 ? possible intended match
9: All names : $x.0/1
check:8'0 ~~~~~~~~~~~~~~~~~~~~
10: _start
check:8'0 ~~~~~~~~
11: Number : 1
check:8'0 ~~~~~~~~~~~~
12: State : CFG constructed
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
13: Address : 0x11158
check:8'0 ~~~~~~~~~~~~~~~~~~~
.
.
.
>>>>>>
--
********************
FAIL: BOLT :: RISCV/reloc-branch.s (5 of 314)
******************** TEST 'BOLT :: RISCV/reloc-branch.s' FAILED ********************
Script:
--
: 'RUN: at line 1'; /usr/local/google/home/ayzhao/src/llvm-project/build/bin/clang --target=x86_64-linux -fuse-ld=lld -Wl,--unresolved-symbols=ignore-all --target=riscv64 -nostdlib -ffreestanding -Wl,--no-relax,--emit-relocs -o /usr/local/google/home/ayzhao/src/llvm-project/build/tools/bolt/test/RISCV/Output/reloc-branch.s.tmp /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-branch.s
: 'RUN: at line 2'; /usr/local/google/home/ayzhao/src/llvm-project/build/bin/llvm-bolt --print-cfg --print-only=_start -o /dev/null /usr/local/google/home/ayzhao/src/llvm-project/build/tools/bolt/test/RISCV/Output/reloc-branch.s.tmp | /usr/local/google/home/ayzhao/src/llvm-project/build/bin/FileCheck /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-branch.s
--
Exit Code: 1
Command Output (stderr):
--
clang: warning: argument unused during compilation: '-ffreestanding' [-Wunused-command-line-argument]
/usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-branch.s:8:11: error: CHECK: expected string not found in input
// CHECK: Binary Function "_start" after building cfg {
^
<stdin>:1:1: note: scanning from here
BOLT-INFO: Target architecture: riscv64
^
<stdin>:8:1: note: possible intended match here
Binary Function "$x.0/1(*2)" after building cfg {
^
Input file: <stdin>
Check file: /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-branch.s
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: BOLT-INFO: Target architecture: riscv64
check:8'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
2: BOLT-INFO: BOLT version: a0d8a53c7d0e6ca1c94b5d5c4a65790dd5705ef8
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3: BOLT-INFO: first alloc address is 0x10000
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4: BOLT-INFO: creating new program header table at address 0x210000, offset 0x200000
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5: BOLT-INFO: enabling relocation mode
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6: BOLT-INFO: static input executable detected
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7: BOLT-INFO: disabling -align-macro-fusion on non-x86 platform
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8: Binary Function "$x.0/1(*2)" after building cfg {
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:8'1 ? possible intended match
9: All names : $x.0/1
check:8'0 ~~~~~~~~~~~~~~~~~~~~
10: _start
check:8'0 ~~~~~~~~
11: Number : 1
check:8'0 ~~~~~~~~~~~~
12: State : CFG constructed
check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
13: Address : 0x11158
check:8'0 ~~~~~~~~~~~~~~~~~~~
.
.
.
>>>>>>
--
********************
FAIL: BOLT :: RISCV/reloc-got.s (6 of 314)
******************** TEST 'BOLT :: RISCV/reloc-got.s' FAILED ********************
Script:
--
: 'RUN: at line 1'; /usr/local/google/home/ayzhao/src/llvm-project/build/bin/clang --target=x86_64-linux -fuse-ld=lld -Wl,--unresolved-symbols=ignore-all --target=riscv64 -nostdlib -ffreestanding -Wl,--no-relax,--emit-relocs -o /usr/local/google/home/ayzhao/src/llvm-project/build/tools/bolt/test/RISCV/Output/reloc-got.s.tmp /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-got.s
: 'RUN: at line 2'; /usr/local/google/home/ayzhao/src/llvm-project/build/bin/llvm-bolt --print-cfg --print-only=_start -o /dev/null /usr/local/google/home/ayzhao/src/llvm-project/build/tools/bolt/test/RISCV/Output/reloc-got.s.tmp | /usr/local/google/home/ayzhao/src/llvm-project/build/bin/FileCheck /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-got.s
--
Exit Code: 1
Command Output (stderr):
--
clang: warning: argument unused during compilation: '-ffreestanding' [-Wunused-command-line-argument]
/usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-got.s:14:11: error: CHECK: expected string not found in input
// CHECK: Binary Function "_start" after building cfg {
^
<stdin>:1:1: note: scanning from here
BOLT-INFO: Target architecture: riscv64
^
<stdin>:8:1: note: possible intended match here
Binary Function "$x.1/1(*2)" after building cfg {
^
Input file: <stdin>
Check file: /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-got.s
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: BOLT-INFO: Target architecture: riscv64
check:14'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
2: BOLT-INFO: BOLT version: a0d8a53c7d0e6ca1c94b5d5c4a65790dd5705ef8
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3: BOLT-INFO: first alloc address is 0x10000
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4: BOLT-INFO: creating new program header table at address 0x210000, offset 0x200000
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5: BOLT-INFO: enabling relocation mode
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6: BOLT-INFO: static input executable detected
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7: BOLT-INFO: disabling -align-macro-fusion on non-x86 platform
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8: Binary Function "$x.1/1(*2)" after building cfg {
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:14'1 ? possible intended match
9: All names : $x.1/1
check:14'0 ~~~~~~~~~~~~~~~~~~~~
10: _start
check:14'0 ~~~~~~~~
11: Number : 1
check:14'0 ~~~~~~~~~~~~
12: State : CFG constructed
check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
13: Address : 0x11200
check:14'0 ~~~~~~~~~~~~~~~~~~~
.
.
.
>>>>>>
--
********************
FAIL: BOLT :: RISCV/reloc-jal.s (7 of 314)
******************** TEST 'BOLT :: RISCV/reloc-jal.s' FAILED ********************
Script:
--
: 'RUN: at line 1'; /usr/local/google/home/ayzhao/src/llvm-project/build/bin/clang --target=x86_64-linux -fuse-ld=lld -Wl,--unresolved-symbols=ignore-all --target=riscv64 -nostdlib -ffreestanding -Wl,--no-relax,--emit-relocs -o /usr/local/google/home/ayzhao/src/llvm-project/build/tools/bolt/test/RISCV/Output/reloc-jal.s.tmp /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-jal.s
: 'RUN: at line 2'; /usr/local/google/home/ayzhao/src/llvm-project/build/bin/llvm-bolt --print-cfg --print-only=_start -o /dev/null /usr/local/google/home/ayzhao/src/llvm-project/build/tools/bolt/test/RISCV/Output/reloc-jal.s.tmp | /usr/local/google/home/ayzhao/src/llvm-project/build/bin/FileCheck /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-jal.s
--
Exit Code: 1
Command Output (stderr):
--
clang: warning: argument unused during compilation: '-ffreestanding' [-Wunused-command-line-argument]
/usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-jal.s:17:11: error: CHECK: expected string not found in input
// CHECK: jal ra, f
^
<stdin>:8:46: note: scanning from here
Binary Function "_start" after building cfg {
^
<stdin>:28:12: note: possible intended match here
00000000: jal ra, ("$x.0/1")
^
Input file: <stdin>
Check file: /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-jal.s
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: BOLT-INFO: Target architecture: riscv64
2: BOLT-INFO: BOLT version: a0d8a53c7d0e6ca1c94b5d5c4a65790dd5705ef8
3: BOLT-INFO: first alloc address is 0x10000
4: BOLT-INFO: creating new program header table at address 0x210000, offset 0x200000
5: BOLT-INFO: enabling relocation mode
6: BOLT-INFO: static input executable detected
7: BOLT-INFO: disabling -align-macro-fusion on non-x86 platform
8: Binary Function "_start" after building cfg {
check:17'0 X error: no match found
9: Number : 2
check:17'0 ~~~~~~~~~~~~
10: State : CFG constructed
check:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
11: Address : 0x1115a
check:17'0 ~~~~~~~~~~~~~~~~~~~
12: Size : 0x6
check:17'0 ~~~~~~~~~~~~
13: MaxSize : 0x6
check:17'0 ~~~~~~~~~~~~~~~
.
.
.
23: BB Layout : .LBB01
check:17'0 ~~~~~~~~~~~~~~~~~~~~
24: }
check:17'0 ~~
25: .LBB01 (2 instructions, align : 1)
check:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26: Entry Point
check:17'0 ~~~~~~~~~~~~~
27: CFI State : 0
check:17'0 ~~~~~~~~~~~~~~~
28: 00000000: jal ra, ("$x.0/1")
check:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:17'1 ? possible intended match
29: 00000004: ret
check:17'0 ~~~~~~~~~~~~~~~
30: CFI State: 0
check:17'0 ~~~~~~~~~~~~~~
31:
check:17'0 ~
32: DWARF CFI Instructions:
check:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~
33: <empty>
check:17'0 ~~~~~~~~~
.
.
.
>>>>>>
--
********************
FAIL: BOLT :: RISCV/reloc-call.s (8 of 314)
******************** TEST 'BOLT :: RISCV/reloc-call.s' FAILED ********************
Script:
--
: 'RUN: at line 1'; /usr/local/google/home/ayzhao/src/llvm-project/build/bin/clang --target=x86_64-linux -fuse-ld=lld -Wl,--unresolved-symbols=ignore-all --target=riscv64 -nostdlib -ffreestanding -Wl,--no-relax,--emit-relocs -o /usr/local/google/home/ayzhao/src/llvm-project/build/tools/bolt/test/RISCV/Output/reloc-call.s.tmp /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-call.s
: 'RUN: at line 2'; /usr/local/google/home/ayzhao/src/llvm-project/build/bin/llvm-bolt --print-fix-riscv-calls --print-only=_start -o /dev/null /usr/local/google/home/ayzhao/src/llvm-project/build/tools/bolt/test/RISCV/Output/reloc-call.s.tmp | /usr/local/google/home/ayzhao/src/llvm-project/build/bin/FileCheck /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-call.s
--
Exit Code: 1
Command Output (stderr):
--
clang: warning: argument unused during compilation: '-ffreestanding' [-Wunused-command-line-argument]
/usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-call.s:17:11: error: CHECK: expected string not found in input
// CHECK: auipc ra, f
^
<stdin>:8:49: note: scanning from here
Binary Function "_start" after fix-riscv-calls {
^
<stdin>:28:12: note: possible intended match here
00000000: auipc ra, ("$x.0/1")@plt
^
Input file: <stdin>
Check file: /usr/local/google/home/ayzhao/src/llvm-project/bolt/test/RISCV/reloc-call.s
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: BOLT-INFO: Target architecture: riscv64
2: BOLT-INFO: BOLT version: a0d8a53c7d0e6ca1c94b5d5c4a65790dd5705ef8
3: BOLT-INFO: first alloc address is 0x10000
4: BOLT-INFO: creating new program header table at address 0x210000, offset 0x200000
5: BOLT-INFO: enabling relocation mode
6: BOLT-INFO: static input executable detected
7: BOLT-INFO: disabling -align-macro-fusion on non-x86 platform
8: Binary Function "_start" after fix-riscv-calls {
check:17'0 X error: no match found
9: Number : 2
check:17'0 ~~~~~~~~~~~~
10: State : CFG constructed
check:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
11: Address : 0x1115a
check:17'0 ~~~~~~~~~~~~~~~~~~~
12: Size : 0xa
check:17'0 ~~~~~~~~~~~~
13: MaxSize : 0xa
check:17'0 ~~~~~~~~~~~~~~~
.
.
.
23: BB Layout : .LBB01
check:17'0 ~~~~~~~~~~~~~~~~~~~~
24: }
check:17'0 ~~
25: .LBB01 (3 instructions, align : 1)
check:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26: Entry Point
check:17'0 ~~~~~~~~~~~~~
27: CFI State : 0
check:17'0 ~~~~~~~~~~~~~~~
28: 00000000: auipc ra, ("$x.0/1")@plt
check:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:17'1 ? possible intended match
29: 00000004: jalr ra, 0(ra)
check:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
30: 00000008: ret
check:17'0 ~~~~~~~~~~~~~~~
31: CFI State: 0
check:17'0 ~~~~~~~~~~~~~~
32:
check:17'0 ~
33: DWARF CFI Instructions:
check:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~
.
.
.
>>>>>>
--
********************
********************
Failed Tests (8):
BOLT :: RISCV/reloc-abs.s
BOLT :: RISCV/reloc-branch.s
BOLT :: RISCV/reloc-call.s
BOLT :: RISCV/reloc-got.s
BOLT :: RISCV/reloc-jal.s
BOLT :: RISCV/reloc-pcrel.s
BOLT :: RISCV/reloc-rvc-branch.s
BOLT :: RISCV/reloc-rvc-jump.s
Testing Time: 2.06s
Skipped : 5
Unsupported : 6
Passed : 294
Expectedly Failed: 1
Failed : 8
FAILED: tools/bolt/test/CMakeFiles/check-bolt /usr/local/google/home/ayzhao/src/llvm-project/build/tools/bolt/test/CMakeFiles/check-bolt
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153260/new/
https://reviews.llvm.org/D153260
More information about the llvm-commits
mailing list