OLD | NEW |
1 ; Simple test of the select instruction. The CHECK lines are only | 1 ; Simple test of the select instruction. The CHECK lines are only |
2 ; checking for basic instruction patterns that should be present | 2 ; checking for basic instruction patterns that should be present |
3 ; regardless of the optimization level, so there are no special OPTM1 | 3 ; regardless of the optimization level, so there are no special OPTM1 |
4 ; match lines. | 4 ; match lines. |
5 | 5 |
6 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ | 6 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ |
7 ; RUN: --target x8632 -i %s --args -O2 -allow-externally-defined-symbols \ | 7 ; RUN: --target x8632 -i %s --args -O2 -allow-externally-defined-symbols \ |
8 ; RUN: | %if --need=target_X8632 --command FileCheck %s | 8 ; RUN: | %if --need=target_X8632 --command FileCheck %s |
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 %s | 11 ; RUN: | %if --need=target_X8632 --command FileCheck %s |
12 | 12 |
13 ; RUN: %if --need=target_ARM32 --need=allow_dump \ | 13 ; RUN: %if --need=target_ARM32 \ |
14 ; RUN: --command %p2i --filetype=asm --assemble \ | 14 ; RUN: --command %p2i --filetype=obj \ |
15 ; RUN: --disassemble --target arm32 -i %s --args -O2 \ | 15 ; RUN: --disassemble --target arm32 -i %s --args -O2 \ |
16 ; RUN: -allow-externally-defined-symbols \ | 16 ; RUN: -allow-externally-defined-symbols \ |
17 ; RUN: | %if --need=target_ARM32 --need=allow_dump \ | 17 ; RUN: | %if --need=target_ARM32 \ |
18 ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-O2 %s | 18 ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-O2 %s |
19 ; RUN: %if --need=target_ARM32 --need=allow_dump \ | 19 ; RUN: %if --need=target_ARM32 \ |
20 ; RUN: --command %p2i --filetype=asm --assemble \ | 20 ; RUN: --command %p2i --filetype=obj \ |
21 ; RUN: --disassemble --target arm32 -i %s --args -Om1 \ | 21 ; RUN: --disassemble --target arm32 -i %s --args -Om1 \ |
22 ; RUN: -allow-externally-defined-symbols \ | 22 ; RUN: -allow-externally-defined-symbols \ |
23 ; RUN: | %if --need=target_ARM32 --need=allow_dump \ | 23 ; RUN: | %if --need=target_ARM32 \ |
24 ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-OM1 %s | 24 ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-OM1 %s |
25 | 25 |
26 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 26 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
27 ; RUN: --command %p2i --filetype=asm --assemble \ | 27 ; RUN: --command %p2i --filetype=asm --assemble \ |
28 ; RUN: --disassemble --target mips32 -i %s --args -Om1 \ | 28 ; RUN: --disassemble --target mips32 -i %s --args -Om1 \ |
29 ; RUN: -allow-externally-defined-symbols -skip-unimplemented \ | 29 ; RUN: -allow-externally-defined-symbols -skip-unimplemented \ |
30 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ | 30 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ |
31 ; RUN: --command FileCheck --check-prefix MIPS32 %s | 31 ; RUN: --command FileCheck --check-prefix MIPS32 %s |
32 | 32 |
33 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 33 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 %cond = select i1 true, i64 %a, i64 %b | 101 %cond = select i1 true, i64 %a, i64 %b |
102 ret i64 %cond | 102 ret i64 %cond |
103 } | 103 } |
104 ; CHECK-LABEL: testSelectImm64 | 104 ; CHECK-LABEL: testSelectImm64 |
105 ; CHECK-NOT: cmp 0x{{[0-9a-f]+}}, | 105 ; CHECK-NOT: cmp 0x{{[0-9a-f]+}}, |
106 ; ARM32-LABEL: testSelectImm64 | 106 ; ARM32-LABEL: testSelectImm64 |
107 ; ARM32-NOT: cmp #{{.*}}, | 107 ; ARM32-NOT: cmp #{{.*}}, |
108 ; MIPS32-LABEL: testSelectImm64 | 108 ; MIPS32-LABEL: testSelectImm64 |
109 ; MIPS32: movn | 109 ; MIPS32: movn |
110 ; MIPS32: movn | 110 ; MIPS32: movn |
OLD | NEW |