-
Notifications
You must be signed in to change notification settings - Fork 142
[codegen] Track thumbv7m-none-eabi, riscv32imc-unknown-none-elf #3103
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
Open
joshlf
wants to merge
2
commits into
main
Choose a base branch
from
Gendq4lo5ioqhx5sfxgkq7iza57vwhm6e
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| bench_read_from_bytes_static_size: | ||
| push {r7, lr} | ||
| mov r7, sp | ||
| cmp r2, #6 | ||
| bne .LBB0_2 | ||
| ldrh r2, [r1] | ||
| ldr.w r1, [r1, #2] | ||
| strh r2, [r0, #2] | ||
| str r1, [r0, #4] | ||
| movs r1, #1 | ||
| strh r1, [r0] | ||
| pop {r7, pc} | ||
| .LBB0_2: | ||
| movs r1, #0 | ||
| strh r1, [r0] | ||
| pop {r7, pc} |
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 @@ | ||
| bench_read_from_bytes_static_size: | ||
| li a3, 6 | ||
| bne a2, a3, .LBB0_2 | ||
| lbu a6, 4(a1) | ||
| lbu a3, 5(a1) | ||
| lbu a4, 1(a1) | ||
| lbu a5, 0(a1) | ||
| lbu a2, 2(a1) | ||
| lbu a1, 3(a1) | ||
| slli a4, a4, 8 | ||
| or a4, a4, a5 | ||
| slli a6, a6, 16 | ||
| slli a3, a3, 24 | ||
| or a3, a3, a6 | ||
| slli a1, a1, 8 | ||
| or a1, a1, a2 | ||
| srli a3, a3, 16 | ||
| sh a4, 2(a0) | ||
| sh a1, 4(a0) | ||
| sh a3, 6(a0) | ||
| li a1, 1 | ||
| sh a1, 0(a0) | ||
| ret | ||
| .LBB0_2: | ||
| sh zero, 0(a0) | ||
| 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
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 @@ | ||
| bench_read_from_prefix_static_size: | ||
| push {r7, lr} | ||
| mov r7, sp | ||
| cmp r2, #6 | ||
| bhs .LBB1_2 | ||
| movs r1, #0 | ||
| strh r1, [r0] | ||
| pop {r7, pc} | ||
| .LBB1_2: | ||
| ldr r2, [r1] | ||
| ldrh r1, [r1, #4] | ||
| str.w r2, [r0, #2] | ||
| strh r1, [r0, #6] | ||
| movs r1, #1 | ||
| strh r1, [r0] | ||
| pop {r7, pc} |
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 @@ | ||
| bench_read_from_prefix_static_size: | ||
| li a3, 6 | ||
| bgeu a2, a3, .LBB1_2 | ||
| sh zero, 0(a0) | ||
| ret | ||
| .LBB1_2: | ||
| lbu a6, 4(a1) | ||
| lbu a3, 5(a1) | ||
| lbu a4, 0(a1) | ||
| lbu a5, 1(a1) | ||
| lbu a2, 2(a1) | ||
| lbu a1, 3(a1) | ||
| slli a3, a3, 8 | ||
| or a3, a3, a6 | ||
| slli a2, a2, 16 | ||
| slli a1, a1, 24 | ||
| or a1, a1, a2 | ||
| slli a5, a5, 8 | ||
| or a4, a4, a5 | ||
| srli a1, a1, 16 | ||
| sh a4, 2(a0) | ||
| sh a1, 4(a0) | ||
| sh a3, 6(a0) | ||
| li a1, 1 | ||
| sh a1, 0(a0) | ||
| 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
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 @@ | ||
| bench_read_from_suffix_static_size: | ||
| push {r7, lr} | ||
| mov r7, sp | ||
| cmp r2, #6 | ||
| bhs .LBB2_2 | ||
| movs r1, #0 | ||
| strh r1, [r0] | ||
| pop {r7, pc} | ||
| .LBB2_2: | ||
| add r1, r2 | ||
| ldr r2, [r1, #-6] | ||
| ldrh r1, [r1, #-2] | ||
| str.w r2, [r0, #2] | ||
| strh r1, [r0, #6] | ||
| movs r1, #1 | ||
| strh r1, [r0] | ||
| pop {r7, pc} |
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,27 @@ | ||
| bench_read_from_suffix_static_size: | ||
| li a3, 6 | ||
| bgeu a2, a3, .LBB2_2 | ||
| sh zero, 0(a0) | ||
| ret | ||
| .LBB2_2: | ||
| add a1, a1, a2 | ||
| lbu a6, -6(a1) | ||
| lbu a3, -5(a1) | ||
| lbu a4, -4(a1) | ||
| lbu a5, -3(a1) | ||
| lbu a2, -2(a1) | ||
| lbu a1, -1(a1) | ||
| slli a4, a4, 16 | ||
| slli a5, a5, 24 | ||
| or a4, a4, a5 | ||
| slli a3, a3, 8 | ||
| or a3, a3, a6 | ||
| slli a1, a1, 8 | ||
| or a1, a1, a2 | ||
| srli a4, a4, 16 | ||
| sh a3, 2(a0) | ||
| sh a4, 4(a0) | ||
| sh a1, 6(a0) | ||
| li a1, 1 | ||
| sh a1, 0(a0) | ||
| 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
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 @@ | ||
| bench_ref_from_bytes_dynamic_padding: | ||
| push {r7, lr} | ||
| mov r7, sp | ||
| lsls r2, r0, #30 | ||
| bne .LBB3_3 | ||
| movw r2, #65532 | ||
| movt r2, #32767 | ||
| ands r2, r1 | ||
| cmp r2, #9 | ||
| blo .LBB3_3 | ||
| movw r3, #43691 | ||
| subs r2, #9 | ||
| movt r3, #43690 | ||
| umull r2, r3, r2, r3 | ||
| lsrs r2, r3, #1 | ||
| add.w r3, r2, r2, lsl #1 | ||
| orr r3, r3, #3 | ||
| adds r3, #9 | ||
| cmp r1, r3 | ||
| beq .LBB3_4 | ||
| .LBB3_3: | ||
| movs r0, #0 | ||
| mov r2, r1 | ||
| .LBB3_4: | ||
| mov r1, r2 | ||
| pop {r7, pc} |
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,24 @@ | ||
| bench_ref_from_bytes_dynamic_padding: | ||
| andi a2, a0, 3 | ||
| bnez a2, .LBB3_3 | ||
| lui a2, 524288 | ||
| addi a2, a2, -4 | ||
| and a2, a2, a1 | ||
| li a3, 9 | ||
| bltu a2, a3, .LBB3_3 | ||
| addi a2, a2, -9 | ||
| lui a3, 699051 | ||
| addi a3, a3, -1365 | ||
| mulhu a3, a2, a3 | ||
| srli a2, a3, 1 | ||
| andi a3, a3, -2 | ||
| add a3, a3, a2 | ||
| ori a3, a3, 3 | ||
| addi a3, a3, 9 | ||
| beq a1, a3, .LBB3_4 | ||
| .LBB3_3: | ||
| li a0, 0 | ||
| mv a2, a1 | ||
| .LBB3_4: | ||
| mv a1, a2 | ||
| 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Separate from accepting this PR, it looks like we'll need to implement some form of label normalization.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC this is just because we're changing how compilation works (compiling in a different context with different numbers of basic blocks), which is why this changed. It should still be stable.