mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 15:36:58 +00:00

Replace a single dash with a double dash for options that have more than a single letter. llvm-bolt-wrapper.py has special treatment for output options such as "-o" and "-w" causing issues when a single dash is used, e.g. for "-write-dwp". The wrapper can be fixed as well, but using a double dash has other advantages as well. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D127538
44 lines
1.9 KiB
Plaintext
44 lines
1.9 KiB
Plaintext
# RUN: yaml2obj %p/Inputs/srol-bug-input.yaml &> %t.exe
|
|
# RUN: llvm-bolt %t.exe --simplify-rodata-loads --print-finalized --relocs=0 \
|
|
# RUN: --print-disasm -o %t.out | FileCheck %s
|
|
|
|
CHECK: Binary Function "myfunc" after disassembly {
|
|
CHECK: 00000000: addl mydata(%rip), %edx
|
|
CHECK: 00000006: subl mydata(%rip), %edx
|
|
CHECK: 0000000c: andl mydata(%rip), %edx
|
|
CHECK: 00000012: orl mydata(%rip), %edx
|
|
CHECK: 00000018: xorl mydata(%rip), %edx
|
|
CHECK: 0000001f: movzwl mydata(%rip), %edx
|
|
CHECK: 00000026: movb mydata(%rip), %dl
|
|
CHECK: 0000002c: movw mydata(%rip), %dx
|
|
CHECK: 00000033: movl mydata(%rip), %edx
|
|
CHECK: 00000039: movq mydata(%rip), %rdx
|
|
CHECK: 00000040: cmpb mydata(%rip), %dl
|
|
CHECK: 00000046: cmpw mydata(%rip), %dx
|
|
CHECK: 0000004d: cmpl mydata(%rip), %edx
|
|
CHECK: 00000053: cmpq mydata(%rip), %rdx
|
|
CHECK: 0000005a: testb %dl, mydata(%rip)
|
|
CHECK: 00000060: testw %dx, mydata(%rip)
|
|
CHECK: 00000067: testl %edx, mydata(%rip)
|
|
CHECK: 0000006d: testq %rdx, mydata(%rip)
|
|
|
|
CHECK: Binary Function "myfunc" after finalize-functions {
|
|
CHECK: 00000000: addl $0x20001, %edx
|
|
CHECK: 00000006: subl $0x20001, %edx
|
|
CHECK: 0000000c: andl $0x20001, %edx
|
|
CHECK: 00000012: orl $0x20001, %edx
|
|
CHECK: 00000018: xorl $0x20001, %edx
|
|
CHECK: 0000001f: movl $0x1, %edx
|
|
CHECK: 00000024: movb $0x1, %dl
|
|
CHECK: 00000026: movw $0x1, %dx
|
|
CHECK: 0000002a: movl $0x20001, %edx
|
|
CHECK: 0000002f: movq $0x20001, %rdx
|
|
CHECK: 00000036: cmpb $0x1, %dl
|
|
CHECK: 00000039: cmpw $0x1, %dx
|
|
CHECK: 0000003d: cmpl $0x20001, %edx
|
|
CHECK: 00000043: cmpq $0x20001, %rdx
|
|
CHECK: 0000004a: testb $0x1, %dl
|
|
CHECK: 0000004d: testw $0x1, %dx
|
|
CHECK: 00000052: testl $0x20001, %edx
|
|
CHECK: 00000058: testq $0x20001, %rdx
|