OLD | NEW |
---|---|
1 ; TODO(rkotler): Stop skipping unimplemented parts (via --skip-unimplemented) | 1 ; TODO(rkotler): Stop skipping unimplemented parts (via --skip-unimplemented) |
2 ; once enough infrastructure is in. Also, switch to --filetype=obj | 2 ; once enough infrastructure is in. Also, switch to --filetype=obj |
3 ; when possible. | 3 ; when possible. |
4 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 4 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
5 ; RUN: --command %p2i --filetype=asm --assemble \ | 5 ; RUN: --command %p2i --filetype=asm --assemble \ |
6 ; RUN: --disassemble --target mips32 -i %s --args -O2 --skip-unimplemented \ | 6 ; RUN: --disassemble --target mips32 -i %s --args -O2 --skip-unimplemented \ |
7 ; RUN: -allow-externally-defined-symbols \ | 7 ; RUN: -allow-externally-defined-symbols \ |
8 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ | 8 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ |
9 ; RUN: --command FileCheck --check-prefix MIPS32 %s | 9 ; RUN: --command FileCheck --check-prefix MIPS32 %s |
10 | 10 |
11 define internal void @uncond1(i32 %i) { | 11 define internal void @uncond1(i32 %i) { |
12 %1 = alloca i8, i32 4, align 4 | 12 %1 = alloca i8, i32 4, align 4 |
13 %.bc = bitcast i8* %1 to i32* | 13 %.bc = bitcast i8* %1 to i32* |
14 store i32 %i, i32* %.bc, align 1 | 14 store i32 %i, i32* %.bc, align 1 |
15 br label %target | 15 br label %target |
16 target: | 16 target: |
17 %.bc1 = bitcast i8* %1 to i32* | 17 %.bc1 = bitcast i8* %1 to i32* |
18 %2 = load i32, i32* %.bc1, align 1 | 18 %2 = load i32, i32* %.bc1, align 1 |
19 %3 = add i32 %2, 1 | 19 %3 = add i32 %2, 1 |
20 %.bc2 = bitcast i8* %1 to i32* | 20 %.bc2 = bitcast i8* %1 to i32* |
21 store i32 %3, i32* %.bc2, align 1 | 21 store i32 %3, i32* %.bc2, align 1 |
22 br label %target | 22 br label %target |
23 } | 23 } |
24 | 24 |
25 ; MIPS32-LABEL: uncond1 | 25 ; MIPS32-LABEL: uncond1 |
26 ; MIPS32: b {{[0-9]+}} <.Luncond1$target> | 26 ; MIPS32: b {{[0-9 | a-f]+}} <.Luncond1$target> |
Jim Stichnoth
2016/06/09 21:19:47
I think the regex should just be
[0-9a-f]+
Right
sagar.thakur
2016/06/10 09:40:35
Yes, changed it to [0-9a-f]+.
| |
27 ; MIPS32: <.Luncond1$target>: | 27 ; MIPS32: <.Luncond1$target>: |
28 ; MIPS32: li | 28 ; MIPS32: li |
29 ; MIPS32: addu | 29 ; MIPS32: addu |
30 ; MIPS32: b {{[0-9]+}} <.Luncond1$target> | 30 ; MIPS32: b {{[0-9 | a-f]+}} <.Luncond1$target> |
OLD | NEW |