OLD | NEW |
1 ; Test encoding of MIPS32 branch instructions | 1 ; Test encoding of MIPS32 branch instructions |
2 | 2 |
3 ; REQUIRES: allow_dump | 3 ; REQUIRES: allow_dump |
4 | 4 |
5 ; Compile using standalone assembler. | 5 ; Compile using standalone assembler. |
6 ; RUN: %p2i --filetype=asm -i %s --target=mips32 --args -O2 \ | 6 ; RUN: %p2i --filetype=asm -i %s --target=mips32 --args -O2 \ |
7 ; RUN: --allow-externally-defined-symbols --skip-unimplemented \ | 7 ; RUN: --allow-externally-defined-symbols \ |
8 ; RUN: | FileCheck %s --check-prefix=ASM | 8 ; RUN: | FileCheck %s --check-prefix=ASM |
9 | 9 |
10 ; Show bytes in assembled standalone code. | 10 ; Show bytes in assembled standalone code. |
11 ; RUN: %p2i --filetype=asm -i %s --target=mips32 --assemble --disassemble \ | 11 ; RUN: %p2i --filetype=asm -i %s --target=mips32 --assemble --disassemble \ |
12 ; RUN: --args -O2 --allow-externally-defined-symbols --skip-unimplemented \ | 12 ; RUN: --args -O2 --allow-externally-defined-symbols \ |
13 ; RUN: | FileCheck %s --check-prefix=DIS | 13 ; RUN: | FileCheck %s --check-prefix=DIS |
14 | 14 |
15 ; Compile using integrated assembler. | 15 ; Compile using integrated assembler. |
16 ; RUN: %p2i --filetype=iasm -i %s --target=mips32 --args -O2 \ | 16 ; RUN: %p2i --filetype=iasm -i %s --target=mips32 --args -O2 \ |
17 ; RUN: --allow-externally-defined-symbols --skip-unimplemented \ | 17 ; RUN: --allow-externally-defined-symbols \ |
18 ; RUN: | FileCheck %s --check-prefix=IASM | 18 ; RUN: | FileCheck %s --check-prefix=IASM |
19 | 19 |
20 ; Show bytes in assembled integrated code. | 20 ; Show bytes in assembled integrated code. |
21 ; RUN: %p2i --filetype=iasm -i %s --target=mips32 --assemble --disassemble \ | 21 ; RUN: %p2i --filetype=iasm -i %s --target=mips32 --assemble --disassemble \ |
22 ; RUN: --args -O2 --allow-externally-defined-symbols --skip-unimplemented \ | 22 ; RUN: --args -O2 --allow-externally-defined-symbols \ |
23 ; RUN: | FileCheck %s --check-prefix=DIS | 23 ; RUN: | FileCheck %s --check-prefix=DIS |
24 | 24 |
25 define internal void @test_01(i32 %a) { | 25 define internal void @test_01(i32 %a) { |
26 %cmp = icmp eq i32 %a, 1 | 26 %cmp = icmp eq i32 %a, 1 |
27 br i1 %cmp, label %then, label %else | 27 br i1 %cmp, label %then, label %else |
28 then: | 28 then: |
29 br label %end | 29 br label %end |
30 else: | 30 else: |
31 br label %end | 31 br label %end |
32 end: | 32 end: |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 ; IASM-NEXT: .byte 0x8 | 246 ; IASM-NEXT: .byte 0x8 |
247 ; IASM-NEXT: .byte 0x0 | 247 ; IASM-NEXT: .byte 0x0 |
248 ; IASM-NEXT: .byte 0xe0 | 248 ; IASM-NEXT: .byte 0xe0 |
249 ; IASM-NEXT: .byte 0x3 | 249 ; IASM-NEXT: .byte 0x3 |
250 ; IASM-NEXT: .byte 0x0 | 250 ; IASM-NEXT: .byte 0x0 |
251 ; IASM-NEXT: .byte 0x0 | 251 ; IASM-NEXT: .byte 0x0 |
252 ; IASM-NEXT: .byte 0x0 | 252 ; IASM-NEXT: .byte 0x0 |
253 ; IASM-NEXT: .byte 0x0 | 253 ; IASM-NEXT: .byte 0x0 |
254 ; IASM-LABEL: .Ltest_04$then: | 254 ; IASM-LABEL: .Ltest_04$then: |
255 ; IASM-LABEL: .Ltest_04$else: | 255 ; IASM-LABEL: .Ltest_04$else: |
OLD | NEW |