| OLD | NEW |
| 1 ; Test of global variable reordering. | 1 ; Test of global variable reordering. |
| 2 | 2 |
| 3 ; REQUIRES: allow_dump | 3 ; REQUIRES: allow_dump |
| 4 | 4 |
| 5 ; Test x8632 asm output | 5 ; Test x8632 asm output |
| 6 ; RUN: %if --need=target_X8632 --command %p2i --filetype=asm --target x8632 \ | 6 ; RUN: %if --need=target_X8632 --command %p2i --filetype=asm --target x8632 \ |
| 7 ; RUN: -i %s --assemble --disassemble --dis-flags=-rD \ | 7 ; RUN: -i %s --assemble --disassemble --dis-flags=-rD \ |
| 8 ; RUN: --args -sz-seed=1 -reorder-global-variables -O2 \ | 8 ; RUN: --args -sz-seed=1 -reorder-global-variables -O2 \ |
| 9 ; RUN: | %if --need=target_X8632 --command FileCheck %s | 9 ; RUN: | %if --need=target_X8632 --command FileCheck %s |
| 10 ; RUN: %if --need=target_X8632 --command %p2i --filetype=asm --target x8632 \ | 10 ; RUN: %if --need=target_X8632 --command %p2i --filetype=asm --target x8632 \ |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 ; RUN: -i %s --disassemble --dis-flags=-rD \ | 27 ; RUN: -i %s --disassemble --dis-flags=-rD \ |
| 28 ; RUN: --args -sz-seed=1 -reorder-global-variables \ | 28 ; RUN: --args -sz-seed=1 -reorder-global-variables \ |
| 29 ; RUN: -O2 \ | 29 ; RUN: -O2 \ |
| 30 ; RUN: | %if --need=target_ARM32 --command FileCheck %s | 30 ; RUN: | %if --need=target_ARM32 --command FileCheck %s |
| 31 ; RUN: %if --need=target_ARM32 --command %p2i --filetype=obj --target arm32 \ | 31 ; RUN: %if --need=target_ARM32 --command %p2i --filetype=obj --target arm32 \ |
| 32 ; RUN: -i %s --disassemble --dis-flags=-rD \ | 32 ; RUN: -i %s --disassemble --dis-flags=-rD \ |
| 33 ; RUN: --args -sz-seed=1 -reorder-global-variables \ | 33 ; RUN: --args -sz-seed=1 -reorder-global-variables \ |
| 34 ; RUN: -Om1 \ | 34 ; RUN: -Om1 \ |
| 35 ; RUN: | %if --need=target_ARM32 --command FileCheck %s | 35 ; RUN: | %if --need=target_ARM32 --command FileCheck %s |
| 36 | 36 |
| 37 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
| 38 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target \ |
| 39 ; RUN: mips32 -i %s --dis-flags=-rD --args -O2 -sz-seed=1 \ |
| 40 ; RUN: -reorder-global-variables \ |
| 41 ; RUN: | %if --need=target_MIPS32 --need=allow_dump --command FileCheck %s |
| 37 | 42 |
| 38 @PrimitiveInit = internal global [4 x i8] c"\1B\00\00\00", align 4 | 43 @PrimitiveInit = internal global [4 x i8] c"\1B\00\00\00", align 4 |
| 39 | 44 |
| 40 @PrimitiveInitConst = internal constant [4 x i8] c"\0D\00\00\00", align 4 | 45 @PrimitiveInitConst = internal constant [4 x i8] c"\0D\00\00\00", align 4 |
| 41 | 46 |
| 42 @ArrayInit = internal global [20 x i8] c"\0A\00\00\00\14\00\00\00\1E\00\00\00(\0
0\00\002\00\00\00", align 4 | 47 @ArrayInit = internal global [20 x i8] c"\0A\00\00\00\14\00\00\00\1E\00\00\00(\0
0\00\002\00\00\00", align 4 |
| 43 | 48 |
| 44 @ArrayInitPartial = internal global [40 x i8] c"<\00\00\00F\00\00\00P\00\00\00Z\
00\00\00d\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00",
align 4 | 49 @ArrayInitPartial = internal global [40 x i8] c"<\00\00\00F\00\00\00P\00\00\00Z\
00\00\00d\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00",
align 4 |
| 45 | 50 |
| 46 @PrimitiveInitStatic = internal global [4 x i8] zeroinitializer, align 4 | 51 @PrimitiveInitStatic = internal global [4 x i8] zeroinitializer, align 4 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 57 | 62 |
| 58 ; CHECK-LABEL: ArrayInit | 63 ; CHECK-LABEL: ArrayInit |
| 59 ; CHECK-LABEL: PrimitiveInit | 64 ; CHECK-LABEL: PrimitiveInit |
| 60 ; CHECK-LABEL: ArrayInitPartial | 65 ; CHECK-LABEL: ArrayInitPartial |
| 61 ; CHECK-LABEL: PrimitiveUninit | 66 ; CHECK-LABEL: PrimitiveUninit |
| 62 ; CHECK-LABEL: ArrayUninit | 67 ; CHECK-LABEL: ArrayUninit |
| 63 ; CHECK-LABEL: PrimitiveInitStatic | 68 ; CHECK-LABEL: PrimitiveInitStatic |
| 64 ; CHECK-LABEL: ArrayUninitConstDouble | 69 ; CHECK-LABEL: ArrayUninitConstDouble |
| 65 ; CHECK-LABEL: ArrayUninitConstInt | 70 ; CHECK-LABEL: ArrayUninitConstInt |
| 66 ; CHECK-LABEL: PrimitiveInitConst | 71 ; CHECK-LABEL: PrimitiveInitConst |
| OLD | NEW |