diff options
| author | Yawning Angel <yawning@schwanenlied.me> | 2021-11-13 09:41:59 +0000 |
|---|---|---|
| committer | Yawning Angel <yawning@schwanenlied.me> | 2021-11-13 09:53:20 +0000 |
| commit | c430a827216b7c79e5df70ed20a1acd98abc92f2 (patch) | |
| tree | 3be144030d41cfb87f339cec51368dd757ac5e85 /src/llvm_backend_debug.cpp | |
| parent | cc316a473e50f4b19255fa24d2fe616c685770bb (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