| OLD | NEW | 
|---|
| 1 ; Show that we know how to translate mul. | 1 ; Show that we know how to translate mul. | 
| 2 | 2 | 
| 3 ; NOTE: We use -O2 to get rid of memory stores. | 3 ; NOTE: We use -O2 to get rid of memory stores. | 
| 4 | 4 | 
| 5 ; REQUIRES: allow_dump | 5 ; REQUIRES: allow_dump | 
| 6 | 6 | 
| 7 ; Compile using standalone assembler. | 7 ; Compile using standalone assembler. | 
| 8 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \ | 8 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \ | 
| 9 ; RUN:   | FileCheck %s --check-prefix=ASM | 9 ; RUN:   | FileCheck %s --check-prefix=ASM | 
| 10 | 10 | 
| 11 ; Show bytes in assembled standalone code. | 11 ; Show bytes in assembled standalone code. | 
| 12 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ | 12 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ | 
| 13 ; RUN:   --args -O2 | FileCheck %s --check-prefix=DIS | 13 ; RUN:   --args -O2 | 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=arm32 --args -O2 -unsafe-ias \ | 16 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 \ | 
| 17 ; RUN:   | FileCheck %s --check-prefix=IASM | 17 ; RUN:   | FileCheck %s --check-prefix=IASM | 
| 18 | 18 | 
| 19 ; Show bytes in assembled integrated code. | 19 ; Show bytes in assembled integrated code. | 
| 20 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ | 20 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ | 
| 21 ; RUN:   --args -O2 -unsafe-ias | FileCheck %s --check-prefix=DIS | 21 ; RUN:   --args -O2 | FileCheck %s --check-prefix=DIS | 
| 22 | 22 | 
| 23 define internal i32 @MulTwoRegs(i32 %a, i32 %b) { | 23 define internal i32 @MulTwoRegs(i32 %a, i32 %b) { | 
| 24   %v = mul i32 %a, %b | 24   %v = mul i32 %a, %b | 
| 25   ret i32 %v | 25   ret i32 %v | 
| 26 } | 26 } | 
| 27 | 27 | 
| 28 ; ASM-LABEL:MulTwoRegs: | 28 ; ASM-LABEL:MulTwoRegs: | 
| 29 ; ASM-NEXT:.LMulTwoRegs$__0: | 29 ; ASM-NEXT:.LMulTwoRegs$__0: | 
| 30 ; ASM-NEXT:     mul     r0, r0, r1 | 30 ; ASM-NEXT:     mul     r0, r0, r1 | 
| 31 | 31 | 
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 87 | 87 | 
| 88 ; IASM-NEXT:    .byte 0x2 | 88 ; IASM-NEXT:    .byte 0x2 | 
| 89 ; IASM-NEXT:    .byte 0x10 | 89 ; IASM-NEXT:    .byte 0x10 | 
| 90 ; IASM-NEXT:    .byte 0xa0 | 90 ; IASM-NEXT:    .byte 0xa0 | 
| 91 ; IASM-NEXT:    .byte 0xe1 | 91 ; IASM-NEXT:    .byte 0xe1 | 
| 92 | 92 | 
| 93 ; IASM-NEXT:    .byte 0x1e | 93 ; IASM-NEXT:    .byte 0x1e | 
| 94 ; IASM-NEXT:    .byte 0xff | 94 ; IASM-NEXT:    .byte 0xff | 
| 95 ; IASM-NEXT:    .byte 0x2f | 95 ; IASM-NEXT:    .byte 0x2f | 
| 96 ; IASM-NEXT:    .byte 0xe1 | 96 ; IASM-NEXT:    .byte 0xe1 | 
| OLD | NEW | 
|---|