OLD | NEW |
1 ; Test encoding of MIPS32 floating point arithmetic instructions | 1 ; Test encoding of MIPS32 floating point arithmetic 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 @encTrap() { | 25 define internal void @encTrap() { |
26 unreachable | 26 unreachable |
27 } | 27 } |
28 | 28 |
29 ; ASM-LABEL: encTrap | 29 ; ASM-LABEL: encTrap |
30 ; ASM-NEXT: .LencTrap$__0: | 30 ; ASM-NEXT: .LencTrap$__0: |
31 ; ASM-NEXT: teq $zero, $zero, 0 | 31 ; ASM-NEXT: teq $zero, $zero, 0 |
32 | 32 |
33 ; DIS-LABEL: 00000000 <encTrap>: | 33 ; DIS-LABEL: 00000000 <encTrap>: |
34 ; DIS-NEXT: 0: 00000034 teq zero,zero | 34 ; DIS-NEXT: 0: 00000034 teq zero,zero |
35 | 35 |
36 ; IASM-LABEL: encTrap: | 36 ; IASM-LABEL: encTrap: |
37 ; IASM-NEXT: .LencTrap$__0: | 37 ; IASM-NEXT: .LencTrap$__0: |
38 ; IASM-NEXT: .byte 0x34 | 38 ; IASM-NEXT: .byte 0x34 |
39 ; IASM-NEXT: .byte 0x0 | 39 ; IASM-NEXT: .byte 0x0 |
40 ; IASM-NEXT: .byte 0x0 | 40 ; IASM-NEXT: .byte 0x0 |
41 ; IASM-NEXT: .byte 0x0 | 41 ; IASM-NEXT: .byte 0x0 |
OLD | NEW |