Commit 88edf14
authored
cpubits: add 64-bit override for ARMv7 (#1419)
ARMv7 is one of the main architectures for which we've received requests
for 64-bit overrides in the past (see discussion on #826).
Though natively 32-bit, ARMv7 supports certain "doubleword" instructions
which model 64-bit values as a pair of 32-bit registers, e.g.
`ADDS`/`ADC` and `SUBS`/`SBC` for 2x32-bit addition/subtraction, as well
as `UMULL`/`SMULL` for widening multiplication with 2x32-bit outputs.
Many ARMv7 CPUs internally fetch 64-bits of instruction at once and can
move 64-bits of data via `LDRD`/`STRD` in one cycle on optimized paths.
Some high-performance ARMv7 CPUs internally combine the barrel shifter +
ALU to speed multi-word shifts.
If we use 64-bit implementations when targeting ARMv7, codegen is able
to leverage these optimizations.1 parent 6aa9161 commit 88edf14
2 files changed
+39
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
55 | 72 | | |
56 | 73 | | |
57 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
96 | | - | |
| 97 | + | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| |||
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
| 178 | + | |
| 179 | + | |
176 | 180 | | |
177 | | - | |
178 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
179 | 185 | | |
180 | 186 | | |
181 | 187 | | |
| |||
294 | 300 | | |
295 | 301 | | |
296 | 302 | | |
297 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
298 | 309 | | |
299 | 310 | | |
300 | 311 | | |
| |||
306 | 317 | | |
307 | 318 | | |
308 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
309 | 327 | | |
310 | 328 | | |
311 | 329 | | |
| |||
0 commit comments