Commit 8a478b4e9e

Andrew Kelley <andrew@ziglang.org>
2025-07-16 04:25:56
fix sparc ccr regs
1 parent 5aa50bc
Changed files (1)
lib
std
builtin
lib/std/builtin/assembly.zig
@@ -1004,13 +1004,17 @@ pub const Clobbers = switch (@import("builtin").cpu.arch) {
         /// addresses other than those derived from input pointer provenance.
         memory: bool = false,
 
-        xcc: bool = false,
-
         psr: bool = false,
-        ccr: bool = false,
         gsr: bool = false,
         y: bool = false,
 
+        /// asr2; v9+
+        ccr: bool = false,
+        /// Lower bits of `ccr`.
+        icc: bool = false,
+        /// Upper bits of `ccr`.
+        xcc: bool = false,
+
         g1: bool = false,
         g2: bool = false,
         g3: bool = false,