Commit Graph

7003 Commits

Author SHA1 Message Date
gingerBill
07b5c2ee0f Support enable_target_feature and require_target_feature for asm templates 2026-08-31 16:39:17 +01:00
gingerBill
df3b988db8 asm: add new operand kind for lanes (arm64) 2026-08-31 15:45:44 +01:00
gingerBill
7954321b78 Update instruction_table.odin with missing MOV forms 2026-08-31 15:19:27 +01:00
gingerBill
c789811597 Add a form transfer bytes check for memory operands 2026-08-31 15:15:46 +01:00
gingerBill
af0842343d Work on trying to get the arm64 asm backend working 2026-08-31 11:02:06 +01:00
gingerBill
3d8437d152 Get the ARM64 frontend working 2026-08-31 10:23:09 +01:00
gingerBill
210defa21b Handle system registers and conditional branching instructions correctly. 2026-08-31 09:55:01 +01:00
gingerBill
a0bfd7da55 Mock out llvm_backend_asm.cpp for arm64 2026-08-30 18:16:04 +01:00
gingerBill
7773596beb Handle status snapshot style instructions 2026-08-30 18:03:26 +01:00
gingerBill
80e9ec0e53 Reformat the instruction table 2026-08-29 19:38:44 +01:00
gingerBill
b12463c4e5 Update tables 2026-08-27 15:06:35 +01:00
gingerBill
3b3bba54a8 Update for new mnemonics 2026-08-27 15:06:12 +01:00
gingerBill
d8cea6ceb0 asm: semantic checking for v[idx] (arm style) 2026-08-27 13:02:10 +01:00
gingerBill
3bb6254857 asm: Support v[idx] operand _syntax_ 2026-08-27 12:01:10 +01:00
gingerBill
87b9b39749 Begin integrating arm64 into the Odin compiler 2026-08-27 11:39:23 +01:00
gingerBill
d805730c67 Correct cpp-gen.odin files 2026-08-27 10:59:54 +01:00
gingerBill
dcb66ab09d Merge branch 'master' into const_array_broadcast 2026-08-26 08:42:51 +01:00
gingerBill
7bd6d16d76 Merge pull request #7438 from kalsprite/asm_doc_category
Give asm templates a documentation category instead of a blank header and a null `%s`
2026-08-26 08:41:20 +01:00
gingerBill
dc8b9584ed Merge pull request #7458 from kalsprite/swizzle_multi_assign
Fix a swizzle target in a multi-assignment reading an already-written source
2026-08-26 08:40:42 +01:00
gingerBill
a934751be1 Merge pull request #7435 from kalsprite/asm_group_empty_params
Delete dead code that crashed the checker on an asm template group with no parameters
2026-08-26 08:40:20 +01:00
gingerBill
4c0e5dfdc8 Merge pull request #7460 from kalsprite/const_truncation_sweep
convert constants before narrowing to i64 in the remaining checker sites
2026-08-26 08:39:48 +01:00
kalsprite
7e9ffac5b0 const truncation sweep 2026-08-25 23:27:06 -07:00
kalsprite
c3bc5b69ac Merge branch 'master' into asm_doc_category 2026-08-25 23:08:48 -07:00
kalsprite
3d4fcd3612 merge master 2026-08-25 23:07:38 -07:00
kalsprite
915fc97b5f add missing int 128le 2026-08-25 22:46:30 -07:00
kalsprite
c1aeb47ce5 swizzle target multi-assignment 2026-08-25 22:22:33 -07:00
kalsprite
ae549bf34b broadcast a constant into every array level 2026-08-25 21:47:02 -07:00
gingerBill
96b1b45f69 Merge branch 'master' of https://github.com/odin-lang/Odin 2026-08-25 19:30:50 +01:00
gingerBill
f7f3d3f198 asm: reenable riscv64 2026-08-25 19:30:38 +01:00
gingerBill
073c733dbd Merge pull request #7432 from kalsprite/asm_immediate_constant
Reject a non-constant argument to an  template's  immediate
2026-08-25 16:20:38 +01:00
gingerBill
2214d90997 Merge branch 'master' into bool_comparison_normalise 2026-08-25 15:31:19 +01:00
gingerBill
2f8ddd560b Merge branch 'master' into asm_immediate_constant 2026-08-25 15:28:06 +01:00
gingerBill
ee68d39c20 Merge pull request #7444 from odin-lang/bill/asm-cfg
Inline `asm` templates - CFG based analysis
2026-08-25 15:27:34 +01:00
gingerBill
771cbfa31a Merge pull request #7439 from ssenthilnathan3/fix/proc-literal-type-canonicalization
Fix canonical names for types in procedure literals
2026-08-25 15:12:32 +01:00
gingerBill
65c927841a Merge branch 'master' into bill/asm-cfg 2026-08-25 15:04:39 +01:00
gingerBill
337bb43948 asm: minor cleanups 2026-08-25 13:40:16 +01:00
gingerBill
b4cf9b14bd asm: Implement sub-register width analysis 2026-08-25 12:17:06 +01:00
gingerBill
160a5ffe5c Improve error message for which status flags were not set but expected. 2026-08-25 11:21:57 +01:00
gingerBill
173443cdd1 Add read-before-write for flags, and fix bugs caused by typos 2026-08-25 10:26:27 +01:00
Senthilnathan
559ed487e6 fix: canonical names for types in procedure literals 2026-08-25 14:41:48 +05:30
gingerBill
c200bfc189 Check for infinite cycles in the CFG and report if the procedure is not marketed as diverging 2026-08-25 09:55:48 +01:00
gingerBill
6f65d775c2 Re-add check_asm_cfg_liveness 2026-08-25 09:43:31 +01:00
Jeroen van Rijn
5a994d4ea2 Merge pull request #7450 from kalsprite/mod_min_neg_one
Fix: `min(T) % -1` kills the process with SIGFPE, at every hardware width.
2026-08-25 01:32:21 -07:00
kalsprite
5628815bfe mod -1 2026-08-24 19:46:47 -07:00
kalsprite
4ecaa7dfd9 normalize bool cmp 2026-08-24 18:34:59 -07:00
Jeroen van Rijn
66f9dbca8a Merge branch 'master' into bool_be_conversion 2026-08-24 18:31:30 -07:00
kalsprite
c3bfbea235 big endian bool cmp 2026-08-24 18:15:01 -07:00
Jeroen van Rijn
650c558cb9 Merge pull request #7445 from kalsprite/target_feature_empty_element
string_split_iterator fix
2026-08-24 18:03:35 -07:00
kalsprite
7bf266ef93 string_split_iterator fix 2026-08-24 17:32:30 -07:00
gingerBill
b1a81cf6f3 asm: Improve warnings for unreachable blocks 2026-08-24 23:56:19 +01:00