Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: tests_lit/assembler/arm32/branch-mult-fwd.ll

Issue 1414483008: Add CMP(register) and CMP(Immediate) to ARM integerated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« src/IceAssemblerARM32.cpp ('K') | « src/IceInstARM32.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; Test that we correctly fix multiple forward branches. 1 ; Test that we correctly fix multiple forward branches.
2 2
3 ; Compile using standalone assembler. 3 ; Compile using standalone assembler.
4 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \ 4 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \
5 ; RUN: | FileCheck %s --check-prefix=ASM 5 ; RUN: | FileCheck %s --check-prefix=ASM
6 6
7 ; Show bytes in assembled standalone code. 7 ; Show bytes in assembled standalone code.
8 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ 8 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \
9 ; RUN: --args -Om1 | FileCheck %s --check-prefix=DIS 9 ; RUN: --args -Om1 | FileCheck %s --check-prefix=DIS
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 ; IASM-NEXT: .byte 0x9d 71 ; IASM-NEXT: .byte 0x9d
72 ; IASM-NEXT: .byte 0xe5 72 ; IASM-NEXT: .byte 0xe5
73 73
74 ; IASM-NEXT: mov r1, #0 74 ; IASM-NEXT: mov r1, #0
75 75
76 ; IASM-NEXT: .byte 0x4 76 ; IASM-NEXT: .byte 0x4
77 ; IASM-NEXT: .byte 0x20 77 ; IASM-NEXT: .byte 0x20
78 ; IASM-NEXT: .byte 0x9d 78 ; IASM-NEXT: .byte 0x9d
79 ; IASM-NEXT: .byte 0xe5 79 ; IASM-NEXT: .byte 0xe5
80 80
81 ; IASM-NEXT:» cmp» r0, r2 81 ; IASM-NEXT:» .byte 0x2
Jim Stichnoth 2015/10/30 21:41:11 Probably better if you untabify this file.
Karl 2015/10/30 22:06:56 Done.
82 ; IASM-NEXT:» .byte 0x0
83 ; IASM-NEXT:» .byte 0x50
84 ; IASM-NEXT:» .byte 0xe1
85
82 ; IASM-NEXT: movlt r1, #1 86 ; IASM-NEXT: movlt r1, #1
83 87
84 ; IASM-NEXT: .byte 0x0 88 ; IASM-NEXT: .byte 0x0
85 ; IASM-NEXT: .byte 0x10 89 ; IASM-NEXT: .byte 0x10
86 ; IASM-NEXT: .byte 0x8d 90 ; IASM-NEXT: .byte 0x8d
87 ; IASM-NEXT: .byte 0xe5 91 ; IASM-NEXT: .byte 0xe5
88 92
89 br i1 %cmp, label %then, label %else 93 br i1 %cmp, label %then, label %else
90 94
91 ; ASM-NEXT: ldr r0, [sp] 95 ; ASM-NEXT: ldr r0, [sp]
92 ; ASM-NEXT: uxtb r0, r0 96 ; ASM-NEXT: uxtb r0, r0
93 ; ASM-NEXT: cmp r0, #0 97 ; ASM-NEXT: cmp r0, #0
94 ; ASM-NEXT: bne .Lmult_fwd_branches$then 98 ; ASM-NEXT: bne .Lmult_fwd_branches$then
95 ; ASM-NEXT: b .Lmult_fwd_branches$else 99 ; ASM-NEXT: b .Lmult_fwd_branches$else
96 100
97 ; DIS-NEXT: 24: e59d0000 101 ; DIS-NEXT: 24: e59d0000
98 ; DIS-NEXT: 28: e6ef0070 102 ; DIS-NEXT: 28: e6ef0070
99 ; DIS-NEXT: 2c: e3500000 103 ; DIS-NEXT: 2c: e3500000
100 ; DIS-NEXT: 30: 1a000000 104 ; DIS-NEXT: 30: 1a000000
101 ; DIS-NEXT: 34: ea000000 105 ; DIS-NEXT: 34: ea000000
102 106
103 ; IASM-NEXT: ldr r0, [sp] 107 ; IASM-NEXT: ldr r0, [sp]
104 ; IASM-NEXT: uxtb r0, r0 108 ; IASM-NEXT: uxtb r0, r0
105 ; IASM-NEXT: cmp r0, #0
106 109
107 ; IASM-NEXT: .byte 0x0 110 ; IASM-NEXT: .byte 0x0
108 ; IASM-NEXT: .byte 0x0 111 ; IASM-NEXT: .byte 0x0
112 ; IASM-NEXT: .byte 0x50
113 ; IASM-NEXT: .byte 0xe3
114
115 ; IASM-NEXT: .byte 0x0
116 ; IASM-NEXT: .byte 0x0
109 ; IASM-NEXT: .byte 0x0 117 ; IASM-NEXT: .byte 0x0
110 ; IASM-NEXT: .byte 0x1a 118 ; IASM-NEXT: .byte 0x1a
111 119
112 ; IASM-NEXT: .byte 0x0 120 ; IASM-NEXT: .byte 0x0
113 ; IASM-NEXT: .byte 0x0 121 ; IASM-NEXT: .byte 0x0
114 ; IASM-NEXT: .byte 0x0 122 ; IASM-NEXT: .byte 0x0
115 ; IASM-NEXT: .byte 0xea 123 ; IASM-NEXT: .byte 0xea
116 124
117 then: 125 then:
118 ; ASM-LABEL:.Lmult_fwd_branches$then: 126 ; ASM-LABEL:.Lmult_fwd_branches$then:
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 ; IASM-NEXT: .byte 0xd0 167 ; IASM-NEXT: .byte 0xd0
160 ; IASM-NEXT: .byte 0x8d 168 ; IASM-NEXT: .byte 0x8d
161 ; IASM-NEXT: .byte 0xe2 169 ; IASM-NEXT: .byte 0xe2
162 170
163 ; IASM-NEXT: .byte 0x1e 171 ; IASM-NEXT: .byte 0x1e
164 ; IASM-NEXT: .byte 0xff 172 ; IASM-NEXT: .byte 0xff
165 ; IASM-NEXT: .byte 0x2f 173 ; IASM-NEXT: .byte 0x2f
166 ; IASM-NEXT: .byte 0xe1 174 ; IASM-NEXT: .byte 0xe1
167 175
168 } 176 }
OLDNEW
« src/IceAssemblerARM32.cpp ('K') | « src/IceInstARM32.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698