Skip to content

Commit

Permalink
Update the expected codegen for gcc 10 (codegen)
Browse files Browse the repository at this point in the history
  • Loading branch information
NUCLEAR-BOMB committed Nov 18, 2024
1 parent 4b4f2cb commit d8b78dc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/codegen/sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ opt::option<double> option_double_return() {
//$ mov dl, 0x1
//$ ret

//$ @optional_double_return {gcc 14, gcc 11, gcc 12}:
//$ @optional_double_return {gcc 14, gcc <13}:
//$ mov byte ptr [rsp - 0x10], 0x1
//$ movsd xmm0, qword ptr <optional_double_return()+0x11>
//$ mov rax, qword ptr [rsp - 0x10]
Expand Down Expand Up @@ -419,11 +419,16 @@ opt::option<int> option_int_return_none() {
//$ xor eax, eax
//$ ret

//$ @optional_int_return_default_ctor {gcc}:
//$ @optional_int_return_default_ctor {gcc >=11}:
//$ mov byte ptr [rsp - 0x4], 0x0
//$ mov rax, qword ptr [rsp - 0x8]
//$ ret

//$ @optional_int_return_default_ctor {gcc <11}:
//$ mov dword ptr [rsp - 0xc], 0x0
//$ mov rax, qword ptr [rsp - 0x10]
//$ ret

//$ @optional_int_return_default_ctor {msvc}:
//$ mov byte ptr [rcx + 0x4], 0x0
//$ mov rax, rcx
Expand Down

0 comments on commit d8b78dc

Please sign in to comment.