OLD | NEW |
1 ; Simple test that returns various immediates. For fixed-width instruction | 1 ; Simple test that returns various immediates. For fixed-width instruction |
2 ; sets, some immediates are more complicated than others. | 2 ; sets, some immediates are more complicated than others. |
3 ; For x86-32, it shouldn't be a problem. | 3 ; For x86-32, it shouldn't be a problem. |
4 | 4 |
5 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 \ | 5 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 \ |
6 ; RUN: -allow-externally-defined-symbols | FileCheck %s | 6 ; RUN: -allow-externally-defined-symbols | FileCheck %s |
7 | 7 |
8 ; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) | 8 ; RUN: %if --need=target_ARM32 \ |
9 ; once enough infrastructure is in. Also, switch to --filetype=obj | 9 ; RUN: --command %p2i --filetype=obj \ |
10 ; when possible. | 10 ; RUN: --disassemble --target arm32 -i %s --args -O2 \ |
11 ; RUN: %if --need=target_ARM32 --need=allow_dump \ | 11 ; RUN: | %if --need=target_ARM32 \ |
12 ; RUN: --command %p2i --filetype=asm --assemble \ | |
13 ; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \ | |
14 ; RUN: | %if --need=target_ARM32 --need=allow_dump \ | |
15 ; RUN: --command FileCheck --check-prefix ARM32 %s | 12 ; RUN: --command FileCheck --check-prefix ARM32 %s |
16 | 13 |
17 ; TODO(rkotler): Stop skipping unimplemented parts (via --skip-unimplemented) | 14 ; TODO(rkotler): Stop skipping unimplemented parts (via --skip-unimplemented) |
18 ; once enough infrastructure is in. Also, switch to --filetype=obj | 15 ; once enough infrastructure is in. Also, switch to --filetype=obj |
19 ; when possible. | 16 ; when possible. |
20 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 17 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
21 ; RUN: --command %p2i --filetype=asm --assemble \ | 18 ; RUN: --command %p2i --filetype=asm --assemble \ |
22 ; RUN: --disassemble --target mips32 -i %s --args -O2 --skip-unimplemented \ | 19 ; RUN: --disassemble --target mips32 -i %s --args -O2 --skip-unimplemented \ |
23 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ | 20 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ |
24 ; RUN: --command FileCheck --check-prefix MIPS32 %s | 21 ; RUN: --command FileCheck --check-prefix MIPS32 %s |
(...skipping 295 matching lines...) Loading... |
320 ; CHECK-LABEL: ret_addr | 317 ; CHECK-LABEL: ret_addr |
321 ; CHECK-NEXT: mov eax,0x0 {{.*}} R_386_32 _start | 318 ; CHECK-NEXT: mov eax,0x0 {{.*}} R_386_32 _start |
322 ; ARM32-LABEL: ret_addr | 319 ; ARM32-LABEL: ret_addr |
323 ; ARM32-NEXT: movw r0, #0 {{.*}} R_ARM_MOVW_ABS_NC _start | 320 ; ARM32-NEXT: movw r0, #0 {{.*}} R_ARM_MOVW_ABS_NC _start |
324 ; ARM32-NEXT: movt r0, #0 {{.*}} R_ARM_MOVT_ABS _start | 321 ; ARM32-NEXT: movt r0, #0 {{.*}} R_ARM_MOVT_ABS _start |
325 ; TODO(RKotler) emitting proper li but in disassembly | 322 ; TODO(RKotler) emitting proper li but in disassembly |
326 ; it shows up only in the relocation records. Should emit | 323 ; it shows up only in the relocation records. Should emit |
327 ; without the macro but we still need to add GOT implementation | 324 ; without the macro but we still need to add GOT implementation |
328 ; to finish this case | 325 ; to finish this case |
329 ; | 326 ; |
OLD | NEW |