OLD | NEW |
1 ; Test of multiple indirect calls to the same target. Each call | 1 ; Test of multiple indirect calls to the same target. Each call |
2 ; should be to the same operand, whether it's in a register or on the | 2 ; should be to the same operand, whether it's in a register or on the |
3 ; stack. | 3 ; stack. |
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 \ | 6 ; RUN: --target x8632 -i %s --args -O2 \ |
7 ; RUN: | %if --need=target_X8632 --command FileCheck %s | 7 ; RUN: | %if --need=target_X8632 --command FileCheck %s |
8 ; RUN: %if --need=allow_dump --need=target_X8632 --command %p2i --filetype=asm \ | 8 ; RUN: %if --need=allow_dump --need=target_X8632 --command %p2i --filetype=asm \ |
9 ; RUN: --assemble --disassemble -i %s --args -O2 \ | 9 ; RUN: --assemble --disassemble -i %s --args -O2 \ |
10 ; RUN: | %if --need=allow_dump --need=target_X8632 --command FileCheck %s | 10 ; RUN: | %if --need=allow_dump --need=target_X8632 --command FileCheck %s |
11 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ | 11 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ |
12 ; RUN: --target x8632 -i %s --args -Om1 \ | 12 ; RUN: --target x8632 -i %s --args -Om1 \ |
13 ; RUN: | %if --need=target_X8632 --command FileCheck --check-prefix=OPTM1 %s | 13 ; RUN: | %if --need=target_X8632 --command FileCheck --check-prefix=OPTM1 %s |
14 | 14 |
15 ; RUN: %if --need=target_X8664 --command %p2i --filetype=obj --disassemble \ | 15 ; RUN: %if --need=target_X8664 --command %p2i --filetype=obj --disassemble \ |
16 ; RUN: --target x8664 -i %s --args -O2 \ | 16 ; RUN: --target x8664 -i %s --args -O2 \ |
17 ; RUN: | %if --need=target_X8664 --command FileCheck --check-prefix X8664 %s | 17 ; RUN: | %if --need=target_X8664 --command FileCheck --check-prefix X8664 %s |
18 ; RUN: %if --need=allow_dump --need=target_X8664 --command %p2i --filetype=asm \ | 18 ; RUN: %if --need=allow_dump --need=target_X8664 --command %p2i --filetype=asm \ |
19 ; RUN: --assemble --disassemble --target x8664 -i %s --args -O2 \ | 19 ; RUN: --assemble --disassemble --target x8664 -i %s --args -O2 \ |
20 ; RUN: | %if --need=allow_dump --need=target_X8664 \ | 20 ; RUN: | %if --need=allow_dump --need=target_X8664 \ |
21 ; RUN: --command FileCheck --check-prefix=X8664 %s | 21 ; RUN: --command FileCheck --check-prefix=X8664 %s |
22 ; RUN: %if --need=target_X8664 --command %p2i --filetype=obj --disassemble \ | 22 ; RUN: %if --need=target_X8664 --command %p2i --filetype=obj --disassemble \ |
23 ; RUN: --target x8664 -i %s --args -Om1 \ | 23 ; RUN: --target x8664 -i %s --args -Om1 \ |
24 ; RUN: | %if --need=target_X8664 \ | 24 ; RUN: | %if --need=target_X8664 \ |
25 ; RUN: --command FileCheck --check-prefix=X8664-OPTM1 %s | 25 ; RUN: --command FileCheck --check-prefix=X8664-OPTM1 %s |
26 | 26 |
27 ; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) | 27 ; RUN: %if --need=target_ARM32 \ |
28 ; once enough infrastructure is in. Also, switch to --filetype=obj | 28 ; RUN: --command %p2i --filetype=obj \ |
29 ; when possible. | 29 ; RUN: --disassemble --target arm32 -i %s --args -O2 \ |
30 ; RUN: %if --need=target_ARM32 --need=allow_dump \ | 30 ; RUN: | %if --need=target_ARM32 \ |
31 ; RUN: --command %p2i --filetype=asm --assemble \ | |
32 ; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \ | |
33 ; RUN: | %if --need=target_ARM32 --need=allow_dump \ | |
34 ; RUN: --command FileCheck --check-prefix ARM32 %s | 31 ; RUN: --command FileCheck --check-prefix ARM32 %s |
35 ; RUN: %if --need=target_ARM32 --need=allow_dump \ | 32 ; RUN: %if --need=target_ARM32 \ |
36 ; RUN: --command %p2i --filetype=asm --assemble \ | 33 ; RUN: --command %p2i --filetype=obj \ |
37 ; RUN: --disassemble --target arm32 -i %s --args -Om1 --skip-unimplemented \ | 34 ; RUN: --disassemble --target arm32 -i %s --args -Om1 \ |
38 ; RUN: | %if --need=target_ARM32 --need=allow_dump \ | 35 ; RUN: | %if --need=target_ARM32_dump \ |
39 ; RUN: --command FileCheck --check-prefix ARM32 %s | 36 ; RUN: --command FileCheck --check-prefix ARM32 %s |
40 | 37 |
41 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4 | 38 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4 |
42 @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4 | 39 @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4 |
43 @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8 | 40 @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8 |
44 @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4 | 41 @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4 |
45 | 42 |
46 define internal void @CallIndirect(i32 %f) { | 43 define internal void @CallIndirect(i32 %f) { |
47 entry: | 44 entry: |
48 %__1 = inttoptr i32 %f to void ()* | 45 %__1 = inttoptr i32 %f to void ()* |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 ; e8 00 00 00 00 call {{.*}} *ABS*+0x103bc | 183 ; e8 00 00 00 00 call {{.*}} *ABS*+0x103bc |
187 ; | 184 ; |
188 ; ARM32-LABEL: CallConst | 185 ; ARM32-LABEL: CallConst |
189 ; ARM32: movw [[REGISTER:r.*]], #960 | 186 ; ARM32: movw [[REGISTER:r.*]], #960 |
190 ; ARM32: movt [[REGISTER]], #1 | 187 ; ARM32: movt [[REGISTER]], #1 |
191 ; ARM32: blx [[REGISTER]] | 188 ; ARM32: blx [[REGISTER]] |
192 ; The legalization of the constant could be shared, but it isn't. | 189 ; The legalization of the constant could be shared, but it isn't. |
193 ; ARM32: movw [[REGISTER:r.*]], #960 | 190 ; ARM32: movw [[REGISTER:r.*]], #960 |
194 ; ARM32: blx [[REGISTER]] | 191 ; ARM32: blx [[REGISTER]] |
195 ; ARM32: blx [[REGISTER]] | 192 ; ARM32: blx [[REGISTER]] |
OLD | NEW |