| author | |
| committer | |
| log | 3822af14071ec2ffe03427079c343549f0143d9b |
| tree | ce68c32d6a0ce0314005b96e331712f5fe701cec |
| parent | dc169ff2b5183471110f84103c11c59f56309210 |
| signature |
andi zero-extends its operand so this usage doesn't assemble; use andni instead.2 files changed, 2 insertions(+), 2 deletions(-)
lib/std/os/linux/csky.zig+1-1| ... | ... | @@ -120,7 +120,7 @@ pub fn clone() callconv(.naked) u32 { |
| 120 | 120 | \\ mov t0, r4 |
| 121 | 121 | \\ mov t1, r7 |
| 122 | 122 | \\ |
| 123 | \\ andi r1, r1, -8 | |
| 123 | \\ andni r1, r1, 7 | |
| 124 | 124 | \\ |
| 125 | 125 | \\ subi r1, 8 |
| 126 | 126 | \\ stw r0, (r1, 0) |
lib/std/start.zig+1-1| ... | ... | @@ -282,7 +282,7 @@ fn _start() callconv(.naked) noreturn { |
| 282 | 282 | \\ movi r8, 0 |
| 283 | 283 | \\ movi lr, 0 |
| 284 | 284 | \\ mov a0, sp |
| 285 | \\ andi sp, sp, -8 | |
| 285 | \\ andni sp, sp, 7 | |
| 286 | 286 | \\ lrw t1, %[posixCallMainAndExit]@GOTOFF |
| 287 | 287 | \\ addu t1, gb |
| 288 | 288 | \\ jmp t1 |