OLD | NEW |
1 ; This is a basic test of the alloca instruction. | 1 ; This is a basic test of the alloca instruction. |
2 | 2 |
3 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ | 3 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ |
4 ; RUN: --target x8632 -i %s --args -O2 -allow-externally-defined-symbols \ | 4 ; RUN: --target x8632 -i %s --args -O2 -allow-externally-defined-symbols \ |
5 ; RUN: | %if --need=target_X8632 --command FileCheck %s | 5 ; RUN: | %if --need=target_X8632 --command FileCheck %s |
6 | 6 |
7 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ | 7 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ |
8 ; RUN: --target x8632 -i %s --args -Om1 -allow-externally-defined-symbols \ | 8 ; RUN: --target x8632 -i %s --args -Om1 -allow-externally-defined-symbols \ |
9 ; RUN: | %if --need=target_X8632 --command FileCheck \ | 9 ; RUN: | %if --need=target_X8632 --command FileCheck \ |
10 ; RUN: --check-prefix CHECK-OPTM1 %s | 10 ; RUN: --check-prefix CHECK-OPTM1 %s |
11 | 11 |
12 ; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) | 12 ; RUN: %if --need=target_ARM32 \ |
13 ; once enough infrastructure is in. Also, switch to --filetype=obj | 13 ; RUN: --command %p2i --filetype=obj \ |
14 ; when possible. | 14 ; RUN: --disassemble --target arm32 -i %s --args -O2 \ |
15 ; RUN: %if --need=target_ARM32 --need=allow_dump \ | |
16 ; RUN: --command %p2i --filetype=asm --assemble \ | |
17 ; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \ | |
18 ; RUN: -allow-externally-defined-symbols \ | 15 ; RUN: -allow-externally-defined-symbols \ |
19 ; RUN: | %if --need=target_ARM32 --need=allow_dump \ | 16 ; RUN: | %if --need=target_ARM32 \ |
20 ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix=ARM-OPT2 %s | 17 ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix=ARM-OPT2 %s |
21 | 18 |
22 ; RUN: %if --need=target_ARM32 --need=allow_dump \ | 19 ; RUN: %if --need=target_ARM32 \ |
23 ; RUN: --command %p2i --filetype=asm --assemble \ | 20 ; RUN: --command %p2i --filetype=obj \ |
24 ; RUN: --disassemble --target arm32 -i %s --args -Om1 --skip-unimplemented \ | 21 ; RUN: --disassemble --target arm32 -i %s --args -Om1 \ |
25 ; RUN: -allow-externally-defined-symbols \ | 22 ; RUN: -allow-externally-defined-symbols \ |
26 ; RUN: | %if --need=target_ARM32 --need=allow_dump \ | 23 ; RUN: | %if --need=target_ARM32 \ |
27 ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix=ARM-OPTM1 %s | 24 ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix=ARM-OPTM1 %s |
28 | 25 |
29 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 26 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
30 ; RUN: --command %p2i --filetype=asm --assemble \ | 27 ; RUN: --command %p2i --filetype=asm --assemble \ |
31 ; RUN: --disassemble --target mips32 -i %s --args -O2 --skip-unimplemented \ | 28 ; RUN: --disassemble --target mips32 -i %s --args -O2 --skip-unimplemented \ |
32 ; RUN: -allow-externally-defined-symbols \ | 29 ; RUN: -allow-externally-defined-symbols \ |
33 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ | 30 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ |
34 ; RUN: --command FileCheck --check-prefix MIPS32 --check-prefix=MIPS32-OPT2 %s | 31 ; RUN: --command FileCheck --check-prefix MIPS32 --check-prefix=MIPS32-OPT2 %s |
35 | 32 |
36 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 33 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 %p1 = bitcast i8* %a1 to i32* | 395 %p1 = bitcast i8* %a1 to i32* |
399 %p2 = bitcast i8* %a2 to i32* | 396 %p2 = bitcast i8* %a2 to i32* |
400 %p3 = bitcast i8* %a3 to i32* | 397 %p3 = bitcast i8* %a3 to i32* |
401 store i32 %arg, i32* %p1, align 1 | 398 store i32 %arg, i32* %p1, align 1 |
402 store i32 %arg, i32* %p2, align 1 | 399 store i32 %arg, i32* %p2, align 1 |
403 store i32 %arg, i32* %p3, align 1 | 400 store i32 %arg, i32* %p3, align 1 |
404 ret void | 401 ret void |
405 } | 402 } |
406 ; CHECK-LABEL: var_with_frameptr | 403 ; CHECK-LABEL: var_with_frameptr |
407 ; CHECK: mov ebp,esp | 404 ; CHECK: mov ebp,esp |
OLD | NEW |