-
Notifications
You must be signed in to change notification settings - Fork 150
[codegen] Track unanalyzed assembly and include it in docs. #3081
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| codegen_test: | ||
| mov rdx, rsi | ||
| cmp rsi, 4 | ||
| setb al | ||
| or al, dil | ||
| test al, 1 | ||
| je .LBB5_2 | ||
| xor eax, eax | ||
| ret | ||
| .LBB5_2: | ||
| lea rcx, [rdx - 4] | ||
| mov rsi, rcx | ||
| and rsi, -2 | ||
| add rsi, 4 | ||
| shr rcx | ||
| xor eax, eax | ||
| cmp rdx, rsi | ||
| cmove rdx, rcx | ||
| cmove rax, rdi | ||
| ret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| codegen_test: | ||
| movabs rax, 9223372036854775805 | ||
| cmp rdx, rax | ||
| seta cl | ||
| mov rax, rdi | ||
| or dil, cl | ||
| test dil, 1 | ||
| jne .LBB5_2 | ||
| lea rcx, [2*rdx + 4] | ||
| cmp rsi, rcx | ||
| je .LBB5_3 | ||
| .LBB5_2: | ||
| xor eax, eax | ||
| mov rdx, rsi | ||
| .LBB5_3: | ||
| ret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| codegen_test: | ||
| xor edx, edx | ||
| mov eax, 0 | ||
| test dil, 1 | ||
| jne .LBB5_4 | ||
| cmp rsi, 4 | ||
| jae .LBB5_3 | ||
| mov edx, 1 | ||
| xor eax, eax | ||
| ret | ||
| .LBB5_3: | ||
| add rsi, -4 | ||
| shr rsi | ||
| mov rdx, rsi | ||
| mov rax, rdi | ||
| .LBB5_4: | ||
| ret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| codegen_test: | ||
| movabs rax, 9223372036854775805 | ||
| cmp rdx, rax | ||
| ja .LBB5_1 | ||
| mov rcx, rdx | ||
| xor edx, edx | ||
| mov eax, 0 | ||
| test dil, 1 | ||
| jne .LBB5_4 | ||
| lea rax, [2*rcx + 4] | ||
| xor r8d, r8d | ||
| cmp rax, rsi | ||
| mov edx, 1 | ||
| cmovbe rdx, rcx | ||
| cmova rdi, r8 | ||
| mov rax, rdi | ||
| .LBB5_4: | ||
| ret | ||
| .LBB5_1: | ||
| mov edx, 1 | ||
| xor eax, eax | ||
| ret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| codegen_test: | ||
| mov rdx, rsi | ||
| lea ecx, [rsi + rdi] | ||
| mov eax, edx | ||
| and eax, 1 | ||
| add rax, rdi | ||
| xor esi, esi | ||
| sub rdx, 4 | ||
| cmovb rax, rsi | ||
| shr rdx | ||
| test cl, 1 | ||
| cmovne rax, rsi | ||
| ret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| codegen_test: | ||
| movabs rax, 9223372036854775805 | ||
| cmp rdx, rax | ||
| ja .LBB5_1 | ||
| lea r8d, [rsi + rdi] | ||
| xor ecx, ecx | ||
| mov eax, 0 | ||
| test r8b, 1 | ||
| jne .LBB5_5 | ||
| lea rax, [2*rdx + 4] | ||
| sub rsi, rax | ||
| jae .LBB5_4 | ||
| .LBB5_1: | ||
| xor eax, eax | ||
| mov edx, 1 | ||
| ret | ||
| .LBB5_4: | ||
| add rdi, rsi | ||
| mov rcx, rdx | ||
| mov rax, rdi | ||
| .LBB5_5: | ||
| mov rdx, rcx | ||
| ret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| codegen_test: | ||
| mov rdx, rsi | ||
| mov rax, rdi | ||
| ret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| codegen_test: | ||
| mov rdx, rsi | ||
| mov rax, rdi | ||
| cmp rsi, 4 | ||
| setb cl | ||
| or cl, al | ||
| test cl, 1 | ||
| jne .LBB5_4 | ||
| lea rcx, [rdx - 4] | ||
| mov rsi, rcx | ||
| and rsi, -2 | ||
| add rsi, 4 | ||
| cmp rdx, rsi | ||
| jne .LBB5_4 | ||
| cmp word ptr [rax], -16192 | ||
| jne .LBB5_4 | ||
| shr rcx | ||
| mov rdx, rcx | ||
| ret | ||
| .LBB5_4: | ||
| xor eax, eax | ||
| ret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| codegen_test: | ||
| movabs rax, 9223372036854775805 | ||
| cmp rdx, rax | ||
| seta cl | ||
| mov rax, rdi | ||
| or dil, cl | ||
| test dil, 1 | ||
| jne .LBB5_3 | ||
| lea rcx, [2*rdx + 4] | ||
| cmp rsi, rcx | ||
| jne .LBB5_3 | ||
| cmp word ptr [rax], -16192 | ||
| je .LBB5_4 | ||
| .LBB5_3: | ||
| xor eax, eax | ||
| mov rdx, rsi | ||
| .LBB5_4: | ||
| ret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| codegen_test: | ||
| xor edx, edx | ||
| mov eax, 0 | ||
| test dil, 1 | ||
| jne .LBB5_4 | ||
| cmp rsi, 4 | ||
| jae .LBB5_3 | ||
| mov edx, 1 | ||
| xor eax, eax | ||
| ret | ||
| .LBB5_3: | ||
| add rsi, -4 | ||
| shr rsi | ||
| movzx ecx, word ptr [rdi] | ||
| cmp ecx, 49344 | ||
| mov edx, 2 | ||
| cmove rdx, rsi | ||
| xor eax, eax | ||
| cmp cx, -16192 | ||
| cmove rax, rdi | ||
| .LBB5_4: | ||
| ret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| codegen_test: | ||
| movabs rax, 9223372036854775805 | ||
| cmp rdx, rax | ||
| ja .LBB5_1 | ||
| mov rcx, rdx | ||
| xor edx, edx | ||
| mov eax, 0 | ||
| test dil, 1 | ||
| jne .LBB5_5 | ||
| lea rax, [2*rcx + 4] | ||
| cmp rax, rsi | ||
| jbe .LBB5_4 | ||
| .LBB5_1: | ||
| xor eax, eax | ||
| mov edx, 1 | ||
| ret | ||
| .LBB5_4: | ||
| movzx esi, word ptr [rdi] | ||
| cmp si, -16192 | ||
| mov edx, 2 | ||
| cmove rdx, rcx | ||
| xor eax, eax | ||
| cmp esi, 49344 | ||
| cmove rax, rdi | ||
| .LBB5_5: | ||
| ret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| codegen_test: | ||
| lea eax, [rsi + rdi] | ||
| cmp rsi, 4 | ||
| setb cl | ||
| or cl, al | ||
| test cl, 1 | ||
| je .LBB5_2 | ||
| xor eax, eax | ||
| ret | ||
| .LBB5_2: | ||
| lea rdx, [rsi - 4] | ||
| shr rdx | ||
| and esi, 1 | ||
| lea rcx, [rdi + rsi] | ||
| xor eax, eax | ||
| cmp word ptr [rdi + rsi], -16192 | ||
| cmove rax, rcx | ||
| ret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| codegen_test: | ||
| movabs rax, 9223372036854775805 | ||
| cmp rdx, rax | ||
| ja .LBB5_1 | ||
| lea r8d, [rsi + rdi] | ||
| xor ecx, ecx | ||
| mov eax, 0 | ||
| test r8b, 1 | ||
| jne .LBB5_5 | ||
| lea rax, [2*rdx + 4] | ||
| sub rsi, rax | ||
| jae .LBB5_4 | ||
| .LBB5_1: | ||
| xor eax, eax | ||
| mov edx, 1 | ||
| ret | ||
| .LBB5_4: | ||
| lea r8, [rdi + rsi] | ||
| movzx esi, word ptr [rdi + rsi] | ||
| cmp si, -16192 | ||
| mov ecx, 2 | ||
| cmove rcx, rdx | ||
| xor eax, eax | ||
| cmp esi, 49344 | ||
| cmove rax, r8 | ||
| .LBB5_5: | ||
| mov rdx, rcx | ||
| ret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| codegen_test: | ||
| mov rdx, rsi | ||
| xor eax, eax | ||
| cmp word ptr [rdi], -16192 | ||
| cmove rax, rdi | ||
| ret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.