OLD | NEW |
1 ; Simple test of signed and unsigned integer conversions. | 1 ; Simple test of signed and unsigned integer conversions. |
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 \ | 4 ; RUN: --target x8632 -i %s --args -O2 \ |
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 \ | 8 ; RUN: --target x8632 -i %s --args -Om1 \ |
9 ; RUN: | %if --need=target_X8632 --command FileCheck %s | 9 ; RUN: | %if --need=target_X8632 --command FileCheck %s |
10 | 10 |
11 ; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) | 11 ; RUN: %if --need=target_ARM32 \ |
12 ; once enough infrastructure is in. Also, switch to --filetype=obj | 12 ; RUN: --command %p2i --filetype=obj \ |
13 ; when possible. | 13 ; RUN: --disassemble --target arm32 -i %s --args -O2 \ |
14 ; RUN: %if --need=target_ARM32 --need=allow_dump \ | 14 ; RUN: | %if --need=target_ARM32 \ |
15 ; RUN: --command %p2i --filetype=asm --assemble \ | |
16 ; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \ | |
17 ; RUN: | %if --need=target_ARM32 --need=allow_dump \ | |
18 ; RUN: --command FileCheck --check-prefix ARM32 %s | 15 ; RUN: --command FileCheck --check-prefix ARM32 %s |
19 | 16 |
20 ; RUN: %if --need=target_ARM32 --need=allow_dump \ | 17 ; RUN: %if --need=target_ARM32 \ |
21 ; RUN: --command %p2i --filetype=asm --assemble \ | 18 ; RUN: --command %p2i --filetype=obj \ |
22 ; RUN: --disassemble --target arm32 -i %s --args -Om1 --skip-unimplemented \ | 19 ; RUN: --disassemble --target arm32 -i %s --args -Om1 \ |
23 ; RUN: | %if --need=target_ARM32 --need=allow_dump \ | 20 ; RUN: | %if --need=target_ARM32 \ |
24 ; RUN: --command FileCheck --check-prefix ARM32 %s | 21 ; RUN: --command FileCheck --check-prefix ARM32 %s |
25 | 22 |
26 @i8v = internal global [1 x i8] zeroinitializer, align 1 | 23 @i8v = internal global [1 x i8] zeroinitializer, align 1 |
27 @i16v = internal global [2 x i8] zeroinitializer, align 2 | 24 @i16v = internal global [2 x i8] zeroinitializer, align 2 |
28 @i32v = internal global [4 x i8] zeroinitializer, align 4 | 25 @i32v = internal global [4 x i8] zeroinitializer, align 4 |
29 @i64v = internal global [8 x i8] zeroinitializer, align 8 | 26 @i64v = internal global [8 x i8] zeroinitializer, align 8 |
30 @u8v = internal global [1 x i8] zeroinitializer, align 1 | 27 @u8v = internal global [1 x i8] zeroinitializer, align 1 |
31 @u16v = internal global [2 x i8] zeroinitializer, align 2 | 28 @u16v = internal global [2 x i8] zeroinitializer, align 2 |
32 @u32v = internal global [4 x i8] zeroinitializer, align 4 | 29 @u32v = internal global [4 x i8] zeroinitializer, align 4 |
33 @u64v = internal global [8 x i8] zeroinitializer, align 8 | 30 @u64v = internal global [8 x i8] zeroinitializer, align 8 |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 | 303 |
307 ; ARM32-LABEL: from_uint64 | 304 ; ARM32-LABEL: from_uint64 |
308 ; ARM32: movw {{.*}}u64v | 305 ; ARM32: movw {{.*}}u64v |
309 ; ARM32: ldr r | 306 ; ARM32: ldr r |
310 ; ARM32: movw {{.*}}i8v | 307 ; ARM32: movw {{.*}}i8v |
311 ; ARM32: strb | 308 ; ARM32: strb |
312 ; ARM32: movw {{.*}}i16v | 309 ; ARM32: movw {{.*}}i16v |
313 ; ARM32: strh | 310 ; ARM32: strh |
314 ; ARM32: movw {{.*}}i32v | 311 ; ARM32: movw {{.*}}i32v |
315 ; ARM32: str r | 312 ; ARM32: str r |
OLD | NEW |