aboutsummaryrefslogtreecommitdiff
path: root/std/special/c.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-09-19 17:02:32 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-09-19 17:02:32 -0400
commit8a30edcde82dfcd36c3eec2fb7bcd5af549325cf (patch)
tree9d45053a816d85e72daee5c168a20259be585871 /std/special/c.zig
parent5e34fb35972b8ff2ec0a420779b689229d05c659 (diff)
parent925ffbce7f424548be9eb42eb3914d5035066003 (diff)
downloadzig-8a30edcde82dfcd36c3eec2fb7bcd5af549325cf.tar.gz
zig-8a30edcde82dfcd36c3eec2fb7bcd5af549325cf.zip
Merge remote-tracking branch 'origin/master' into llvm9
Diffstat (limited to 'std/special/c.zig')
-rw-r--r--std/special/c.zig9
1 files changed, 2 insertions, 7 deletions
diff --git a/std/special/c.zig b/std/special/c.zig
index 0254ed15d3..4d566a001b 100644
--- a/std/special/c.zig
+++ b/std/special/c.zig
@@ -269,16 +269,11 @@ nakedcc fn clone() void {
\\ bx lr
\\
\\1: mov r0,r6
- \\ tst r5,#1
- \\ bne 1f
- \\ mov lr,pc
- \\ mov pc,r5
+ \\ bl 3f
\\2: mov r7,#1
\\ svc 0
- \\
- \\1: mov lr,pc
- \\ bx r5
\\ b 2b
+ \\3: bx r5
);
} else {
@compileError("Implement clone() for this arch.");