Zalathar
028b8b6c54
Simplify //@ needs-asm-mnemonic: ret to just //@ needs-asm-ret
...
The `needs-asm-mnemonic` directive was very general, but in practice was only
being used for `ret`. There are very few other mnemonics that it could
plausibly be useful for (e.g. `nop`), because any instruction that requires
arguments is probably going to be non-portable.
This PR replaces `needs-asm-mnemonic` with a simpler `needs-asm-ret` directive
that uses the same machinery as other simple needs directives.
If we happend to need more mnemonics in the future, we can just add more simple
directives as appropriate (e.g. `needs-asm-nop`).
2026-05-25 17:15:32 +10:00
Folkert de Vries
44b9251b18
use the new //@ needs-asm-mnemonic: ret more
2026-04-29 01:28:35 +02:00
Folkert de Vries
84cd23b3c8
c-variadic: rename VaList::arg to VaList::next_arg
2026-04-22 16:02:11 +02:00
Josh Stone
52dfa94cdc
Update the minimum external LLVM to 21
2026-03-12 16:45:42 -07:00
Folkert de Vries
dd9241d150
c_variadic: use Clone instead of LLVM va_copy
2026-01-20 18:38:50 +01:00
Eduard Stefes
e0c09b546a
fix va_list test by adding a llvmir signext check
...
s390x has no option to directly pass 32bit values therefor i32
parameters need an optional llvmir signext attribute.
2025-12-08 15:50:21 +01:00
Folkert de Vries
08979745c9
split out va_list forwarding into its own test
2025-12-04 11:13:24 +01:00
beetrees
f7b3c1d3c0
Rework c_variadic
2025-12-04 10:51:34 +01:00
Ralf Jung
87024bd00b
stabilize extern_system_varargs
2025-11-09 10:13:38 +01:00
Ralf Jung
3796f7de57
compiletest: rename add-core-stubs to add-minicore
2025-11-02 16:20:06 +01:00
Folkert de Vries
a107ea18af
c-variadic: check that inline attributes are accepted on c-variadic functions
...
they don't do anything, because LLVM is unable to inline c-variadic functions (on most targets, anyway)
2025-09-13 21:05:12 +02:00
Ralf Jung
f6d55aea2c
stabilize extended_varargs_abi_support
2025-09-02 08:48:12 +02:00
Ralf Jung
f75595d2cd
add codegen test for variadics (also replacing some existing does-this-build tests)
2025-07-23 14:19:14 +02:00
Guillaume Gomez
a27f3e3fd1
Rename tests/codegen into tests/codegen-llvm
2025-07-22 14:28:48 +02:00