forked from OSchip/llvm-project
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
|