Skip to content

Added: add elementwise in VX4B#223

Open
LeslieXMOS wants to merge 1 commit into
xmos:developfrom
LeslieXMOS:feature/add_elementwise_quake
Open

Added: add elementwise in VX4B#223
LeslieXMOS wants to merge 1 commit into
xmos:developfrom
LeslieXMOS:feature/add_elementwise_quake

Conversation

@LeslieXMOS

Copy link
Copy Markdown
Contributor

Manually translated add_elementwise assembly in XS3 to VX4B
Tested with a dummy model, the output is almost the same, some differences caused by different rounding scheme in VX4B VPU.

Comment on lines +255 to +279
.p2align 2
vpu_vects_vec_0x01:
.word 0x01010101
.word 0x01010101
.word 0x01010101
.word 0x01010101
vpu_vects_vec_0x007F:
.word 0x007F007F
.word 0x007F007F
.word 0x007F007F
.word 0x007F007F
.word 0x007F007F
.word 0x007F007F
.word 0x007F007F
.word 0x007F007F
vpu_vects_vec_0x80:
.word 0x80808080
.word 0x80808080
.word 0x80808080
.word 0x80808080
.word 0x80808080
.word 0x80808080
.word 0x80808080
.word 0x80808080

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Putting this in a .data section would be more idiomatic and may allow the lla to later be relaxed to a single (gp-relative) instruction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants