diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-10-05 20:28:29 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-10-05 20:36:04 -0700 |
| commit | 9ed599b4e3f5c9f48089a3acd61d0338e27e88f6 (patch) | |
| tree | 97f51ac789f90050f659b3faceb4a665aa304868 /src/codegen/spirv.zig | |
| parent | 01ad6c0b020193a6c5c82e13296a12e847f78d05 (diff) | |
| download | zig-9ed599b4e3f5c9f48089a3acd61d0338e27e88f6.tar.gz zig-9ed599b4e3f5c9f48089a3acd61d0338e27e88f6.zip | |
stage2: LLVM backend: miscompilation fixes
* work around a stage1 miscompilation leading to the wrong integer
comparison predicate being emitted.
* fix the bug of not annotating callsites with the calling convention
of the callee, leading to undefined behavior.
* add the `nobuiltin` attribute when building freestanding libc or
compiler_rt libraries to prevent e.g. memcpy from being "optimized"
into a call to itself.
* compiler-rt: change a call to be comptime to make the generated LLVM
IR simpler and easier to study.
I still can't enable the widening tests due to the compiler-rt compare
function being miscompiled in some not-yet-diagnosed way.
Diffstat (limited to 'src/codegen/spirv.zig')
0 files changed, 0 insertions, 0 deletions
