| 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 ; RUN: %if --need=target_ARM32 \ | 8 ; RUN: %if --need=target_ARM32 \ |
| 9 ; RUN: --command %p2i --filetype=obj \ | 9 ; RUN: --command %p2i --filetype=obj \ |
| 10 ; RUN: --disassemble --target arm32 -i %s --args -O2 \ | 10 ; RUN: --disassemble --target arm32 -i %s --args -O2 \ |
| 11 ; RUN: | %if --need=target_ARM32 \ | 11 ; RUN: | %if --need=target_ARM32 \ |
| 12 ; RUN: --command FileCheck --check-prefix ARM32 %s | 12 ; RUN: --command FileCheck --check-prefix ARM32 %s |
| 13 | 13 |
| 14 ; TODO(rkotler): Stop skipping unimplemented parts (via --skip-unimplemented) | 14 ; TODO(rkotler): Stop skipping unimplemented parts (via --skip-unimplemented) |
| 15 ; once enough infrastructure is in. Also, switch to --filetype=obj | 15 ; once enough infrastructure is in. Also, switch to --filetype=obj |
| 16 ; when possible. | 16 ; when possible. |
| 17 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 17 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
| 18 ; RUN: --command %p2i --filetype=asm --assemble \ | 18 ; RUN: --command %p2i --filetype=asm --assemble \ |
| 19 ; RUN: --disassemble --target mips32 -i %s --args -O2 --skip-unimplemented \ | 19 ; RUN: --disassemble --target mips32 -i %s --args -O2 \ |
| 20 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ | 20 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ |
| 21 ; RUN: --command FileCheck --check-prefix MIPS32 %s | 21 ; RUN: --command FileCheck --check-prefix MIPS32 %s |
| 22 | 22 |
| 23 ; Test 8-bits of all ones rotated right by various amounts (even vs odd). | 23 ; Test 8-bits of all ones rotated right by various amounts (even vs odd). |
| 24 ; ARM has a shifter that allows encoding 8-bits rotated right by even amounts. | 24 ; ARM has a shifter that allows encoding 8-bits rotated right by even amounts. |
| 25 ; The first few "rotate right" test cases are expressed as shift-left. | 25 ; The first few "rotate right" test cases are expressed as shift-left. |
| 26 | 26 |
| 27 define internal i32 @ret_8bits_shift_left0() { | 27 define internal i32 @ret_8bits_shift_left0() { |
| 28 ret i32 255 | 28 ret i32 255 |
| 29 } | 29 } |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 ; CHECK-LABEL: ret_addr | 317 ; CHECK-LABEL: ret_addr |
| 318 ; CHECK-NEXT: mov eax,0x0 {{.*}} R_386_32 _start | 318 ; CHECK-NEXT: mov eax,0x0 {{.*}} R_386_32 _start |
| 319 ; ARM32-LABEL: ret_addr | 319 ; ARM32-LABEL: ret_addr |
| 320 ; ARM32-NEXT: movw r0, #0 {{.*}} R_ARM_MOVW_ABS_NC _start | 320 ; ARM32-NEXT: movw r0, #0 {{.*}} R_ARM_MOVW_ABS_NC _start |
| 321 ; ARM32-NEXT: movt r0, #0 {{.*}} R_ARM_MOVT_ABS _start | 321 ; ARM32-NEXT: movt r0, #0 {{.*}} R_ARM_MOVT_ABS _start |
| 322 ; TODO(RKotler) emitting proper li but in disassembly | 322 ; TODO(RKotler) emitting proper li but in disassembly |
| 323 ; it shows up only in the relocation records. Should emit | 323 ; it shows up only in the relocation records. Should emit |
| 324 ; without the macro but we still need to add GOT implementation | 324 ; without the macro but we still need to add GOT implementation |
| 325 ; to finish this case | 325 ; to finish this case |
| 326 ; | 326 ; |
| OLD | NEW |