zig/test/stage1
LemonBoy 50a8124f45 stage1: Change how the Frame alignment is computed
The code would previously assume every function would start at addresses
being multiples of 16, this is not true beside some specific cases.
Moreover LLVM picks different alignment values depending on whether it's
trying to generate dense or fast code.

Let's use the minimum guaranteed alignment as base value, computed
according to how big the opcodes are.

The alignment of function pointers is always 1, a safe value that won't
cause any error at runtime. Note that this was already the case before
this commit, here we're making this choice explicit.

Let the 'alignment' field for TypeInfo of fn types reflect the ABI
alignment used by the compiler, make this field behave similarly to the
'alignment' one for pointers.
2021-04-25 16:40:41 +02:00
..
behavior stage1: Change how the Frame alignment is computed 2021-04-25 16:40:41 +02:00
c_abi stage1: Add tests for C ABI integer return types 2021-03-12 11:50:56 +01:00
behavior.zig re-enable behavior tests: translate-c macros 2021-03-02 16:32:52 -07:00