Andrew Kelley
b9ea086812
C ABI tests: fix merge conflict with x86/i386
2023-01-09 22:43:10 -07:00
Andrew Kelley
01a44e9aa4
CI: disable mips and powerpc
...
Tracking issue #13782
2023-01-09 16:21:25 -07:00
Michael Dusan
86f4dfe5a8
llvm codegen: fix f16,f32,f64 nan bitcasts
...
@bitCast from integer NaN representation to float NaN resulted in
changed bits in float. This only happened with signaled NaN.
- added test for signaled NaN
- added tests for quiet NaN (for completeness)
closes #14198
2023-01-09 15:15:42 -07:00
Andrew Kelley
5766c8ebc8
Merge pull request #14070 from jacobly0/issue/14032
...
Fix #14032
2023-01-09 15:11:19 -07:00
Jacob Young
4068fafcc6
Sema: fix missing struct layout for llvm backend
...
Closes #14063
2023-01-09 15:10:44 -07:00
shwqf
23c09598c7
Call ensureResultUsed before comptime .call is evaluated.
...
Fixes #12580
2023-01-09 15:09:40 -07:00
IntegratedQuantum
d6faa4e868
Fix tautological big_int tests.
2023-01-09 15:04:55 -07:00
Andrew Kelley
af958e95cc
Merge pull request #13744 from Vexu/stage2-fixes
...
Improve error messages, fix dependency loops
2023-01-09 14:55:12 -07:00
Andrew Kelley
9d214f6f9d
LLVM: fix canElideLoad behavior with loops
...
closes #13546
2023-01-09 14:46:40 -07:00
Jakub Konka
0313426ce8
Merge pull request #13625 from kcbanner/windows_disable_symlink_tests
...
Skip linker tests requiring symlinks on Windows
2023-01-09 14:45:49 -07:00
Jakub Konka
970b7efec7
aarch64-windows: skip failing standalone tests
2023-01-09 14:45:40 -07:00
Jakub Konka
282c54a9c9
aarch64-windows: skip failing align behavior test
2023-01-09 14:45:26 -07:00
Veikka Tuominen
b75197ef88
Merge pull request #13637 from Vexu/stage2-fixes
...
Stage2 bug fixes
2023-01-09 14:42:52 -07:00
Andrew Kelley
05afb3f358
Merge pull request #13632 from ziglang/cbe
2023-01-09 14:40:44 -07:00
Veikka Tuominen
7d812dc1c7
llvm: fix x86_64 sysV ABI of big vectors on avx512 enabled CPUs
...
Closes #13629
2023-01-09 14:38:35 -07:00
Andrew Kelley
090eb347a4
disable failing C ABI test
...
see tracking issue #13629
2023-01-09 14:38:19 -07:00
Andrew Kelley
8bbb4a2f81
disable failing arm-linux non-llvm backend tests
...
See #13623
2023-01-09 14:37:30 -07:00
Veikka Tuominen
a3232c6764
Merge pull request #13585 from Vexu/stage2-fixes
...
Stage2 bug fixes
2023-01-09 14:35:42 -07:00
Veikka Tuominen
da418ee0af
translate-c: cast unsuffixed floats to f64
2023-01-09 14:34:05 -07:00
Guillaume Wenzek
58ac0082d2
compute LLVMTypes in ParamTypeIterator ( #13592 )
...
follow up on #13376 - fixes a bug in the x86_64 C ABI.
Co-authored-by: Veikka Tuominen <git@vexu.eu>
2023-01-09 14:33:43 -07:00
Guillaume Wenzek
4428e3837c
add C ABI tests with double
...
const DC = extern struct { v1: f64, v2: u8 };
const CFF = extern struct { v1: u8, v2: f32, v3: f32 };
const PD = extern struct { v1: ?*anyopaque, v2: f64 };
Signed-off-by: Guillaume Wenzek <gwenzek@users.noreply.github.com>
2023-01-09 14:33:27 -07:00
Veikka Tuominen
4ed0cd51c0
Merge pull request #13558 from Vexu/stage2-fixes
...
Stage2 bug fixes to get third party projects building
2023-01-09 14:06:50 -07:00
mparadinha
35c13c262c
Fix error reporting the wrong line for struct field inits ( #13502 )
...
* point to init part of field delc when that's where the error occurs
* update test to reflect fixed error message
* only lookup source location in case of error
2023-01-09 14:05:29 -07:00
Andrew Kelley
b10386bcf0
disable failing test on aarch64-macos
2023-01-09 14:05:04 -07:00
Veikka Tuominen
b494f6a9dc
Merge pull request #13497 from Vexu/stage2-fixes
...
Stage2 bug fixes
2023-01-09 14:01:01 -07:00
Cody Tapscott
bc33243650
stage2: Support modifiers in inline asm
...
These are supported using %[ident:mod] syntax. This allows requesting,
e.g., the "w" (32-bit) vs. "x" (64-bit) views of AArch64 registers.
See https://llvm.org/docs/LangRef.html#asm-template-argument-modifiers
2023-01-09 14:00:11 -07:00
Andrew Kelley
48798da29b
Merge pull request #13074 from topolarity/stage2-opt
...
stage2: Miscellaneous fixes to vector arithmetic and copy elision
2023-01-09 13:59:04 -07:00
Jakub Konka
52f8de0194
Merge branch 'jcmoyer-lld-explicit-pdb'
2023-01-09 13:58:02 -07:00
Jakub Konka
84f5843178
Merge pull request #13495 from ziglang/macho-dsym
...
stage2: misc DWARF debug info fixes and additions for x86_64 and aarch64
2023-01-09 13:57:34 -07:00
Veikka Tuominen
c1fc15f913
llvm: implement packed unions
...
Closes #13340
2023-01-09 13:56:14 -07:00
Veikka Tuominen
6ea3d3e19f
Merge pull request #13446 from Vexu/stage2-fixes
...
Stage2 bug fixes
2023-01-09 13:52:37 -07:00
Jakub Konka
8d488246da
Merge pull request #13463 from ziglang/fix-13056
...
macho: parse weak imports in tbd descriptors
2023-01-09 13:51:02 -07:00
Jakub Konka
2593d4d7d6
Merge pull request #13459 from ziglang/issue-13457
...
macho: do not zero-out file if there are no nonzerofill sects
2023-01-09 13:50:08 -07:00
Veikka Tuominen
b511231f95
Merge pull request #13338 from Vexu/stage2-compile-errors
...
Improve some error messages
2023-01-09 13:48:34 -07:00
Micah Switzer
8d95b713c5
Sema: resolve lazy align in zirReify for union fields
...
Closes #13435
2023-01-09 13:48:15 -07:00
Nathan Bourgeois
ab4b538d91
Translate-C Remainder Macro Fix
2023-01-09 13:45:42 -07:00
Veikka Tuominen
a7b8d011a3
Merge pull request #13420 from jacobly0/c-backend
...
cbe: enough fixes to bootstrap a compiler with a working c backend
2023-01-09 13:45:06 -07:00
Andrew Kelley
a0ac10d903
Merge pull request #13389 from jacobly0/fix-only-c
...
cbe: enough fixes for `-Donly-c` to be able to produce an executable
2022-11-02 14:11:31 -07:00
Andrew Kelley
5f11e341d8
Merge pull request #13396 from Luukdegram/fix-12880
...
llvm: mangle extern function names for Wasm target
2022-11-02 14:11:10 -07:00
Joachim Schmidt
99b1eaaac4
Merge pull request #13404 from joachimschmidt557/stage2-aarch64
...
stage2 aarch64: enable printing test results in the test runner
2022-11-02 14:10:52 -07:00
Andrew Kelley
57caec8585
Merge pull request #13368 from jacobly0/fix-aarch64-c
2022-11-02 14:09:45 -07:00
Andrew Kelley
ef761c2cbc
Merge pull request #13360 from topolarity/comptime-bool-binops
...
Make `x and false` and `x or true` comptime-known
2022-10-30 22:11:44 -04:00
Jacob Young
a77d89afe3
behavior: enable fixed cbe tests
2022-10-30 15:38:50 -04:00
Cody Tapscott
ca332f57f7
stage2: Make x and false/x or true comptime-known
...
Same as preceding change, but for stage2.
2022-10-30 12:38:08 -07:00
Andrew Kelley
17df35025b
CI: disable failing C backend test
...
See #13357
2022-10-30 03:21:18 -07:00
Andrew Kelley
5f5a20ebaf
Merge pull request #13093 from jacobly0/backend-fixes
...
C backend fixes
2022-10-29 23:06:59 -04:00
Andrew Kelley
28dc208f65
Merge pull request #13082 from g-w1/unnamed-decls-and-relocs-p9
...
Plan9: Fix The Backend
2022-10-29 17:45:00 -04:00
Jacob Young
48a2783969
cbe: implement optional slice representation change
2022-10-29 05:58:41 -04:00
Andrew Kelley
c36eb4ede9
Merge pull request #13221 from topolarity/packed-mem
...
Introduce `std.mem.readPackedInt` and improve bitcasting of packed memory layouts
2022-10-28 21:15:16 -04:00
Evan Haas
c616141241
translate-c: Better support for division in macros
...
Perform C-style arithmetic conversions on operands to division operator
in macros
Closes #13162
2022-10-28 17:59:32 -04:00