| OLD | NEW |
| 1 ; This is a smoke test for reordering pooled constants. | 1 ; This is a smoke test for reordering pooled constants. |
| 2 ; This option is only implemented for target X8632 for now. | 2 ; This option is only implemented for target X8632 for now. |
| 3 | 3 |
| 4 ; RUN: %p2i --assemble --disassemble --filetype=obj --dis-flags=-s \ | 4 ; RUN: %p2i --assemble --disassemble --filetype=obj --dis-flags=-s \ |
| 5 ; RUN: --target x8632 -i %s --args -sz-seed=1 -O2 -reorder-pooled-constants \ | 5 ; RUN: --target x8632 -i %s --args -sz-seed=1 -O2 -reorder-pooled-constants \ |
| 6 ; RUN: | FileCheck %s --check-prefix=X86 | 6 ; RUN: -allow-externally-defined-symbols | FileCheck %s --check-prefix=X86 |
| 7 | 7 |
| 8 ; RUN: %p2i --assemble --disassemble --filetype=obj --dis-flags=-s \ | 8 ; RUN: %p2i --assemble --disassemble --filetype=obj --dis-flags=-s \ |
| 9 ; RUN: --target x8632 -i %s --args -sz-seed=1 -Om1 -reorder-pooled-constants \ | 9 ; RUN: --target x8632 -i %s --args -sz-seed=1 -Om1 -reorder-pooled-constants \ |
| 10 ; RUN: | FileCheck %s --check-prefix=X86 | 10 ; RUN: -allow-externally-defined-symbols | FileCheck %s --check-prefix=X86 |
| 11 | 11 |
| 12 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4 | 12 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4 |
| 13 @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4 | 13 @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4 |
| 14 @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8 | 14 @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8 |
| 15 @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4 | 15 @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4 |
| 16 | 16 |
| 17 define internal float @FpLookup1(i32 %Arg) { | 17 define internal float @FpLookup1(i32 %Arg) { |
| 18 entry: | 18 entry: |
| 19 switch i32 %Arg, label %return [ | 19 switch i32 %Arg, label %return [ |
| 20 i32 0, label %sw.bb | 20 i32 0, label %sw.bb |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 ; X86: 0000c07f 00000000 0000003f 0000803e | 540 ; X86: 0000c07f 00000000 0000003f 0000803e |
| 541 ; X86: 00000040 | 541 ; X86: 00000040 |
| 542 | 542 |
| 543 ; Check for double pool | 543 ; Check for double pool |
| 544 ; X86-LABEL: .rodata.cst8 | 544 ; X86-LABEL: .rodata.cst8 |
| 545 ; X86: 00000000 0000f8ff 00000000 0000f87f | 545 ; X86: 00000000 0000f8ff 00000000 0000f87f |
| 546 ; X86: 00000000 0000e03f 00000000 00000000 | 546 ; X86: 00000000 0000e03f 00000000 00000000 |
| 547 ; X86: 55555555 5555d53f 00000000 0000d03f | 547 ; X86: 55555555 5555d53f 00000000 0000d03f |
| 548 | 548 |
| 549 ; X86-LABEL: .text | 549 ; X86-LABEL: .text |
| OLD | NEW |