OLD | NEW |
1 ; This tries to be a comprehensive test of i64 operations, in | 1 ; This tries to be a comprehensive test of i64 operations, in |
2 ; particular the patterns for lowering i64 operations into constituent | 2 ; particular the patterns for lowering i64 operations into constituent |
3 ; i32 operations on x86-32. | 3 ; i32 operations on x86-32. |
4 | 4 |
5 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ | 5 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ |
6 ; RUN: --target x8632 -i %s --args -O2 -allow-externally-defined-symbols \ | 6 ; RUN: --target x8632 -i %s --args -O2 -allow-externally-defined-symbols \ |
7 ; RUN: | %if --need=target_X8632 --command FileCheck %s | 7 ; RUN: | %if --need=target_X8632 --command FileCheck %s |
8 | 8 |
9 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ | 9 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ |
10 ; RUN: --target x8632 -i %s --args -Om1 -allow-externally-defined-symbols \ | 10 ; RUN: --target x8632 -i %s --args -Om1 -allow-externally-defined-symbols \ |
11 ; RUN: | %if --need=target_X8632 --command FileCheck --check-prefix=OPTM1 %s | 11 ; RUN: | %if --need=target_X8632 --command FileCheck --check-prefix=OPTM1 %s |
12 | 12 |
13 ; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) | 13 ; RUN: %if --need=target_ARM32 \ |
14 ; once enough infrastructure is in. Also, switch to --filetype=obj | 14 ; RUN: --command %p2i --filetype=obj \ |
15 ; when possible. | 15 ; RUN: --disassemble --target arm32 -i %s --args -O2 \ |
16 ; RUN: %if --need=target_ARM32 --need=allow_dump \ | |
17 ; RUN: --command %p2i --filetype=asm --assemble \ | |
18 ; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \ | |
19 ; RUN: -allow-externally-defined-symbols \ | 16 ; RUN: -allow-externally-defined-symbols \ |
20 ; RUN: | %if --need=target_ARM32 --need=allow_dump \ | 17 ; RUN: | %if --need=target_ARM32 \ |
21 ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-O2 %s | 18 ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-O2 %s |
22 ; RUN: %if --need=target_ARM32 --need=allow_dump \ | 19 ; RUN: %if --need=target_ARM32 \ |
23 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target arm32 \ | 20 ; RUN: --command %p2i --filetype=obj --disassemble --target arm32 \ |
24 ; RUN: -i %s --args -Om1 --skip-unimplemented \ | 21 ; RUN: -i %s --args -Om1 \ |
25 ; RUN: -allow-externally-defined-symbols \ | 22 ; RUN: -allow-externally-defined-symbols \ |
26 ; RUN: | %if --need=target_ARM32 --need=allow_dump \ | 23 ; RUN: | %if --need=target_ARM32 \ |
27 ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-OM1 %s | 24 ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-OM1 %s |
28 | 25 |
29 ; TODO(rkotler): Stop skipping unimplemented parts (via --skip-unimplemented) | 26 ; TODO(rkotler): Stop skipping unimplemented parts (via --skip-unimplemented) |
30 ; once enough infrastructure is in. Also, switch to --filetype=obj | 27 ; once enough infrastructure is in. Also, switch to --filetype=obj |
31 ; when possible. | 28 ; when possible. |
32 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 29 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
33 ; RUN: --command %p2i --filetype=asm --assemble \ | 30 ; RUN: --command %p2i --filetype=asm --assemble \ |
34 ; RUN: --disassemble --target mips32 -i %s --args -O2 --skip-unimplemented \ | 31 ; RUN: --disassemble --target mips32 -i %s --args -O2 --skip-unimplemented \ |
35 ; RUN: -allow-externally-defined-symbols \ | 32 ; RUN: -allow-externally-defined-symbols \ |
36 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ | 33 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ |
(...skipping 2429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2466 %s = lshr i64 %a, 40 | 2463 %s = lshr i64 %a, 40 |
2467 %t = trunc i64 %s to i32 | 2464 %t = trunc i64 %s to i32 |
2468 %r = sub i32 %t, 1 | 2465 %r = sub i32 %t, 1 |
2469 ret i32 %r | 2466 ret i32 %r |
2470 ; ARM32-LABEL: subOneToUpperAfterShift | 2467 ; ARM32-LABEL: subOneToUpperAfterShift |
2471 ; ARM32: subs | 2468 ; ARM32: subs |
2472 ; ARM32: sbc | 2469 ; ARM32: sbc |
2473 ; ARM32: lsr | 2470 ; ARM32: lsr |
2474 ; ARM32: sub | 2471 ; ARM32: sub |
2475 } | 2472 } |
OLD | NEW |