| 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 ; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) | 15 ; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) |
| 16 ; once enough infrastructure is in. Also, switch to --filetype=obj | 16 ; once enough infrastructure is in. Also, switch to --filetype=obj |
| 17 ; when possible. | 17 ; when possible. |
| 18 ; RUN: %if --need=target_ARM32 --command %p2i --filetype=asm --assemble \ | 18 ; RUN: %if --need=target_ARM32 --need=allow_dump \ |
| 19 ; RUN: --command %p2i --filetype=asm --assemble \ |
| 19 ; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \ | 20 ; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \ |
| 20 ; RUN: | %if --need=target_ARM32 --command FileCheck --check-prefix ARM32 %s | 21 ; RUN: | %if --need=target_ARM32 --need=allow_dump \ |
| 22 ; RUN: --command FileCheck --check-prefix ARM32 %s |
| 21 | 23 |
| 22 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4 | 24 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4 |
| 23 @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4 | 25 @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4 |
| 24 @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8 | 26 @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8 |
| 25 @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4 | 27 @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4 |
| 26 | 28 |
| 27 define internal void @CallIndirect(i32 %f) { | 29 define internal void @CallIndirect(i32 %f) { |
| 28 entry: | 30 entry: |
| 29 %__1 = inttoptr i32 %f to void ()* | 31 %__1 = inttoptr i32 %f to void ()* |
| 30 call void %__1() | 32 call void %__1() |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 ; OPTM1: e8 bc 03 01 00 call {{[0-9a-f]+}} {{.*}} R_386_PC32 *ABS* | 112 ; OPTM1: e8 bc 03 01 00 call {{[0-9a-f]+}} {{.*}} R_386_PC32 *ABS* |
| 111 ; | 113 ; |
| 112 ; ARM32-LABEL: CallConst | 114 ; ARM32-LABEL: CallConst |
| 113 ; ARM32: movw [[REGISTER:r.*]], #960 | 115 ; ARM32: movw [[REGISTER:r.*]], #960 |
| 114 ; ARM32: movt [[REGISTER]], #1 | 116 ; ARM32: movt [[REGISTER]], #1 |
| 115 ; ARM32: blx [[REGISTER]] | 117 ; ARM32: blx [[REGISTER]] |
| 116 ; The legalization of the constant could be shared, but it isn't. | 118 ; The legalization of the constant could be shared, but it isn't. |
| 117 ; ARM32: movw [[REGISTER:r.*]], #960 | 119 ; ARM32: movw [[REGISTER:r.*]], #960 |
| 118 ; ARM32: blx [[REGISTER]] | 120 ; ARM32: blx [[REGISTER]] |
| 119 ; ARM32: blx [[REGISTER]] | 121 ; ARM32: blx [[REGISTER]] |
| OLD | NEW |