Home | History | Annotate | Download | only in mips32
      1 ; Test encoding of MIPS32 floating point arithmetic instructions
      2 
      3 ; REQUIRES: allow_dump
      4 
      5 ; Compile using standalone assembler.
      6 ; RUN: %p2i --filetype=asm -i %s --target=mips32 --args -O2 \
      7 ; RUN:   --allow-externally-defined-symbols \
      8 ; RUN:   | FileCheck %s --check-prefix=ASM
      9 
     10 ; Show bytes in assembled standalone code.
     11 ; RUN: %p2i --filetype=asm -i %s --target=mips32 --assemble --disassemble \
     12 ; RUN:   --args -O2 --allow-externally-defined-symbols \
     13 ; RUN:   | FileCheck %s --check-prefix=DIS
     14 
     15 ; Compile using integrated assembler.
     16 ; RUN: %p2i --filetype=iasm -i %s --target=mips32 --args -O2 \
     17 ; RUN:   --allow-externally-defined-symbols \
     18 ; RUN:   | FileCheck %s --check-prefix=IASM
     19 
     20 ; Show bytes in assembled integrated code.
     21 ; RUN: %p2i --filetype=iasm -i %s --target=mips32 --assemble --disassemble \
     22 ; RUN:   --args -O2 --allow-externally-defined-symbols \
     23 ; RUN:   | FileCheck %s --check-prefix=DIS
     24 
     25 define internal void @encTrap() {
     26   unreachable
     27 }
     28 
     29 ; ASM-LABEL: encTrap
     30 ; ASM-NEXT: .LencTrap$__0:
     31 ; ASM: 	teq	$zero, $zero, 0
     32 
     33 ; DIS-LABEL: 00000000 <encTrap>:
     34 ; DIS-NEXT:    0:	00000034 	teq	zero,zero
     35 
     36 ; IASM-LABEL: encTrap:
     37 ; IASM-NEXT: .LencTrap$__0:
     38 ; IASM-NEXT: 	.byte 0x34
     39 ; IASM-NEXT: 	.byte 0x0
     40 ; IASM-NEXT: 	.byte 0x0
     41 ; IASM-NEXT: 	.byte 0x0
     42