authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-07-15 14:53:35-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-07-16 10:27:39-07:00
logde9c0e45800466e12d68c11f001cea447727fb5a
tree7265104b709136afe0b9ddf8db507fa0d607ab98
parent76d04c1662e638854f84b6b32cca04ea1acd80c3

alexrp suggestions


1 files changed, 36 insertions(+), 56 deletions(-)

lib/std/builtin/assembly.zig+36-56
...@@ -199,41 +199,6 @@ pub const Clobbers = switch (@import("builtin").cpu.arch) {...@@ -199,41 +199,6 @@ pub const Clobbers = switch (@import("builtin").cpu.arch) {
199 ds: bool = false,199 ds: bool = false,
200 fs: bool = false,200 fs: bool = false,
201 gs: bool = false,201 gs: bool = false,
202 rip: bool = false,
203 eip: bool = false,
204 ip: bool = false,
205 cr0: bool = false,
206 cr1: bool = false,
207 cr2: bool = false,
208 cr3: bool = false,
209 cr4: bool = false,
210 cr5: bool = false,
211 cr6: bool = false,
212 cr7: bool = false,
213 cr8: bool = false,
214 cr9: bool = false,
215 cr10: bool = false,
216 cr11: bool = false,
217 cr12: bool = false,
218 cr13: bool = false,
219 cr14: bool = false,
220 cr15: bool = false,
221 dr0: bool = false,
222 dr1: bool = false,
223 dr2: bool = false,
224 dr3: bool = false,
225 dr4: bool = false,
226 dr5: bool = false,
227 dr6: bool = false,
228 dr7: bool = false,
229 dr8: bool = false,
230 dr9: bool = false,
231 dr10: bool = false,
232 dr11: bool = false,
233 dr12: bool = false,
234 dr13: bool = false,
235 dr14: bool = false,
236 dr15: bool = false,
237 },202 },
238 .aarch64, .aarch64_be => packed struct {203 .aarch64, .aarch64_be => packed struct {
239 /// Whether the inline assembly code may perform stores to memory204 /// Whether the inline assembly code may perform stores to memory
...@@ -304,7 +269,6 @@ pub const Clobbers = switch (@import("builtin").cpu.arch) {...@@ -304,7 +269,6 @@ pub const Clobbers = switch (@import("builtin").cpu.arch) {
304 w27: bool = false,269 w27: bool = false,
305 w28: bool = false,270 w28: bool = false,
306 w29: bool = false,271 w29: bool = false,
307 w30: bool = false,
308272
309 lr: bool = false,273 lr: bool = false,
310 sp: bool = false,274 sp: bool = false,
...@@ -529,26 +493,44 @@ pub const Clobbers = switch (@import("builtin").cpu.arch) {...@@ -529,26 +493,44 @@ pub const Clobbers = switch (@import("builtin").cpu.arch) {
529 b30: bool = false,493 b30: bool = false,
530 b31: bool = false,494 b31: bool = false,
531495
532 za0: bool = false,496 za0q: bool = false,
533 za1: bool = false,497 za1q: bool = false,
534 za2: bool = false,498 za2q: bool = false,
535 za3: bool = false,499 za3q: bool = false,
536 za4: bool = false,500 za4q: bool = false,
537 za5: bool = false,501 za5q: bool = false,
538 za6: bool = false,502 za6q: bool = false,
539 za7: bool = false,503 za7q: bool = false,
540 za8: bool = false,504 za8q: bool = false,
541 za9: bool = false,505 za9q: bool = false,
542 za10: bool = false,506 za10q: bool = false,
543 za11: bool = false,507 za11q: bool = false,
544 za12: bool = false,508 za12q: bool = false,
545 za13: bool = false,509 za13q: bool = false,
546 za14: bool = false,510 za14q: bool = false,
547 za15: bool = false,511 za15q: bool = false,
512
513 za0d: bool = false,
514 za1d: bool = false,
515 za2d: bool = false,
516 za3d: bool = false,
517 za4d: bool = false,
518 za5d: bool = false,
519 za6d: bool = false,
520 za7d: bool = false,
521
522 za0s: bool = false,
523 za1s: bool = false,
524 za2s: bool = false,
525 za3s: bool = false,
526
527 za0h: bool = false,
528 za1h: bool = false,
529 za0b: bool = false,
548530
549 zt0: bool = false,531 zt0: bool = false,
550 },532 },
551 .arm, .armeb => packed struct {533 .arm, .armeb, .thumb, .thumbeb => packed struct {
552 /// Whether the inline assembly code may perform stores to memory534 /// Whether the inline assembly code may perform stores to memory
553 /// addresses other than those derived from input pointer provenance.535 /// addresses other than those derived from input pointer provenance.
554 memory: bool = false,536 memory: bool = false,
...@@ -571,7 +553,6 @@ pub const Clobbers = switch (@import("builtin").cpu.arch) {...@@ -571,7 +553,6 @@ pub const Clobbers = switch (@import("builtin").cpu.arch) {
571 r12: bool = false,553 r12: bool = false,
572 r13: bool = false,554 r13: bool = false,
573 r14: bool = false,555 r14: bool = false,
574 r15: bool = false,
575556
576 fpscr: bool = false,557 fpscr: bool = false,
577 vpr: bool = false,558 vpr: bool = false,
...@@ -831,6 +812,7 @@ pub const Clobbers = switch (@import("builtin").cpu.arch) {...@@ -831,6 +812,7 @@ pub const Clobbers = switch (@import("builtin").cpu.arch) {
831 a14: bool = false,812 a14: bool = false,
832 a15: bool = false,813 a15: bool = false,
833814
815 br: bool = false,
834 b0: bool = false,816 b0: bool = false,
835 b1: bool = false,817 b1: bool = false,
836 b2: bool = false,818 b2: bool = false,
...@@ -848,7 +830,6 @@ pub const Clobbers = switch (@import("builtin").cpu.arch) {...@@ -848,7 +830,6 @@ pub const Clobbers = switch (@import("builtin").cpu.arch) {
848 b14: bool = false,830 b14: bool = false,
849 b15: bool = false,831 b15: bool = false,
850832
851 br: bool = false,
852 acchi: bool = false,833 acchi: bool = false,
853 acclo: bool = false,834 acclo: bool = false,
854 m0: bool = false,835 m0: bool = false,
...@@ -999,7 +980,6 @@ pub const Clobbers = switch (@import("builtin").cpu.arch) {...@@ -999,7 +980,6 @@ pub const Clobbers = switch (@import("builtin").cpu.arch) {
999980
1000 macsr: bool = false,981 macsr: bool = false,
1001 acc: bool = false,982 acc: bool = false,
1002
1003 acc0: bool = false,983 acc0: bool = false,
1004 acc1: bool = false,984 acc1: bool = false,
1005 acc2: bool = false,985 acc2: bool = false,