aboutsummaryrefslogtreecommitdiffhomepage
path: root/amd64/emit.c
Commit message (Collapse)AuthorAgeFilesLines
* misc fixeslemon2025-12-101-3/+2
|
* amd64: fix wrong condition code being used for float gthlemon2025-12-071-1/+1
| | | | ughh
* amd64: use XORPS for floating point negationlemon2025-12-071-0/+1
| | | | | | | | | | Previously `neg x` was being turned into `sub 0, x`. But this gives the wrong result for zero/negative zero (-0.0 == -0.0 but 0.0 - 0.0 == 0.0), so it wasn't IEEE compliant or correct. Do what every other compiler does instead and flip the sign bit with an exclusive or. Should implement someway of deduplicating small data constants like the ones used here though.
* amd64: fix pseudo-push/pop float reglemon2025-12-051-2/+2
| | | | | | With add/sub flags can be trashed which can result in miscompilations, use lea. This shouldn't even exist, need to get rid of xsave/xrestore, but for now fix this kludge
* amd64: handle unoredered float cmpslemon2025-12-051-2/+30
|
* amd64/isel: fix addressing index shift being possibly too large to encode (duh)lemon2025-11-291-0/+1
|
* amd64/emit: I64 consts and fp push/poplemon2025-11-241-7/+22
|
* amd64/emit: fix (partially) float comparisonsdlemon2025-11-231-6/+10
|
* amd64/emit: this rbpoff approach is kinda broken..lemon2025-11-231-1/+1
|
* amd64/emit: fix REX-requiring 8-bit GPR encoding checking wrong reglemon2025-11-221-2/+2
|
* remove umullemon2025-11-211-1/+0
|
* change op names to match 285063eba44lemon2025-11-211-24/+24
|
* rename IR classes to reflect bitsizelemon2025-11-211-29/+29
|
* isel: lower allocas a different way, such that stk address gets materialized ↵lemon2025-11-201-4/+4
| | | | when necesary
* ir: 'trap' jump; c: __builtin_trap; lex: __has_builtinlemon2025-11-151-0/+2
|
* emit: stack alignment edgecaseslemon2025-11-151-5/+9
|
* preeliminary va_list supportlemon2025-11-141-3/+46
|
* amd64: fix positive RBP off (stack params); address encoding erratalemon2025-11-121-2/+2
|
* amd64: get rid of xinc/xdec. handle those at emit stagelemon2025-11-091-8/+6
|
* amd64: errata with unsigned greater than or equal (should be JAE)lemon2025-11-061-1/+1
|
* isel fixeslemon2025-10-301-1/+0
|
* emit: remove unnecessary REX.W prfix for TEST r8lemon2025-10-261-1/+1
|
* amd64: add/sub operands less restrictivelemon2025-10-251-2/+2
|
* c: avoid generating relocations in .rodata (putting such objects in .data ↵lemon2025-10-251-1/+3
| | | | instead for now)
* emit: PU8, PU16lemon2025-10-251-0/+6
|
* amd64 rbpofflemon2025-10-241-1/+1
|
* amd64 missing stufflemon2025-10-231-1/+2
|
* amd64: load/store from abs address constants; movabslemon2025-10-231-11/+32
|
* amd64/emit PI8 fix int overflow edgecaselemon2025-10-231-1/+1
|
* fix edge case codegen bugs (w/ stack offsets, spilling)lemon2025-10-221-0/+2
|
* amd64/emit erratalemon2025-10-201-1/+1
|
* Organize source files into directorieslemon2025-10-191-1/+1
|
* amd64: float conversion insntrslemon2025-10-181-2/+30
|
* codegen bugfixlemon2025-10-171-5/+13
|
* amd64: not, udivlemon2025-10-141-0/+13
|
* amd64: mul -> imullemon2025-10-131-8/+9
|
* fix some more codegen bugs for symbol constantslemon2025-09-161-2/+1
|
* codegen: fix 3-address sub reg,imm codegenlemon2025-09-151-1/+1
|
* start implementing bitfieldslemon2025-09-141-0/+6
|
* codegen: float cmp, ior; frontend: fix cond expr buglemon2025-09-141-3/+16
|
* preliminary pie and piclemon2025-09-141-11/+37
|
* regalloc: basic spilling supportlemon2025-09-131-0/+6
|
* amd64: improve codegen for ADDlemon2025-09-111-0/+3
|
* amd64: bugfix for stack args with no RBP, also reuse epilogue code?lemon2025-09-111-26/+48
|
* amd64/emit: fix order of stack restore operations with regs+stklemon2025-09-091-6/+11
|
* ioperlemon2025-09-091-12/+21
|
* fixes, delnopslemon2025-09-091-2/+2
|
* amd64: swap, sarlemon2025-09-081-1/+21
|
* amd64: bugfixlemon2025-09-081-4/+9
|
* amd64: add mulf and divf codegenlemon2023-08-071-3/+18
|