aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_debug.cpp
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2021-11-13 09:41:59 +0000
committerYawning Angel <yawning@schwanenlied.me>2021-11-13 09:53:20 +0000
commitc430a827216b7c79e5df70ed20a1acd98abc92f2 (patch)
tree3be144030d41cfb87f339cec51368dd757ac5e85 /src/llvm_backend_debug.cpp
parentcc316a473e50f4b19255fa24d2fe616c685770bb (diff)
src: Fix the syscall intrinsic code generation for Linux and Windows
The old assembly generated for the syscall intrinsic did not specify clobber constraints. This adds RCX and R11 (that are clobbered by the instruction itself), and memory (that is clobbered by some system calls) to the assembly constraints. Note: This is still incorrect on FreeBSD, which clobbers more registers and uses the carry flag instead of -errno in rax to indicate an error.
Diffstat (limited to 'src/llvm_backend_debug.cpp')
0 files changed, 0 insertions, 0 deletions