mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
add Intel user interrupt instructions (#2767)
* add Intel user interrupt instructions * Example code did not actually work, so was removed. --------- Co-authored-by: Christoffer Lerno <christoffer@aegik.com>
This commit is contained in:
@@ -709,6 +709,12 @@ static void init_asm_x86(PlatformTarget* target)
|
||||
reg_instr(target, "push", "imm8");
|
||||
reg_instr(target, "pushw", "r16/mem/imm16");
|
||||
reg_instr(target, "popw", "w:r16/mem");
|
||||
|
||||
reg_instr(target, "stui", NULL);
|
||||
reg_instr(target, "clui", NULL);
|
||||
reg_instr(target, "senduipi", "r64");
|
||||
reg_instr(target, "uiret", NULL);
|
||||
|
||||
|
||||
reg_instr_clob(target, "popcntw", cc_flag_mask, "w:r16, r16/mem");
|
||||
reg_instr_clob(target, "popcntl", cc_flag_mask, "w:r32, r32/mem");
|
||||
|
||||
Reference in New Issue
Block a user