| OLD | NEW |
| 1 ; Show that we know how to translate add. | 1 ; Show that we know how to translate add. |
| 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 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 ; IASM-LABEL:addI64ToR0R1: | 89 ; IASM-LABEL:addI64ToR0R1: |
| 90 ; IASM-NEXT:.LaddI64ToR0R1$__0: | 90 ; IASM-NEXT:.LaddI64ToR0R1$__0: |
| 91 ; IASM-NEXT: .byte 0x1 | 91 ; IASM-NEXT: .byte 0x1 |
| 92 ; IASM-NEXT: .byte 0x0 | 92 ; IASM-NEXT: .byte 0x0 |
| 93 ; IASM-NEXT: .byte 0x90 | 93 ; IASM-NEXT: .byte 0x90 |
| 94 ; IASM-NEXT: .byte 0xe2 | 94 ; IASM-NEXT: .byte 0xe2 |
| 95 ; IASM-NEXT: .byte 0x0 | 95 ; IASM-NEXT: .byte 0x0 |
| 96 ; IASM-NEXT: .byte 0x10 | 96 ; IASM-NEXT: .byte 0x10 |
| 97 ; IASM-NEXT: .byte 0xa1 | 97 ; IASM-NEXT: .byte 0xa1 |
| 98 ; IASM-NEXT: .byte 0xe2 | 98 ; IASM-NEXT: .byte 0xe2 |
| 99 |
| 100 define internal i64 @AddI64Regs(i64 %p1, i64 %p2) { |
| 101 %v = add i64 %p1, %p2 |
| 102 ret i64 %v |
| 103 } |
| 104 |
| 105 ; ASM-LABEL:AddI64Regs: |
| 106 ; ASM-NEXT:.LAddI64Regs$__0: |
| 107 ; ASM-NEXT: adds r0, r0, r2 |
| 108 ; ASM-NEXT: adc r1, r1, r3 |
| 109 |
| 110 ; DIS-LABEL:00000030 <AddI64Regs>: |
| 111 ; DIS-NEXT: 30: e0900002 |
| 112 ; DIS-NEXT: 34: e0a11003 |
| 113 |
| 114 ; IASM-LABEL:AddI64Regs: |
| 115 ; IASM-NEXT:.LAddI64Regs$__0: |
| 116 ; IASM-NEXT: .byte 0x2 |
| 117 ; IASM-NEXT: .byte 0x0 |
| 118 ; IASM-NEXT: .byte 0x90 |
| 119 ; IASM-NEXT: .byte 0xe0 |
| 120 ; IASM-NEXT: .byte 0x3 |
| 121 ; IASM-NEXT: .byte 0x10 |
| 122 ; IASM-NEXT: .byte 0xa1 |
| 123 ; IASM-NEXT: .byte 0xe0 |
| OLD | NEW |