Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Disallow instruction with label operand in a bundle #16

Merged
merged 2 commits into from
Nov 23, 2018

Conversation

Emoun
Copy link
Member

@Emoun Emoun commented Nov 23, 2018

When compiling assembly, can no longer create a bundle where the first instruction uses a label operand, since it would need to be a long immediate instruction and therefore can't be part of a bundle. Fixes #15.
Tests for this change will be provided as a PR to the benchmark repository.

Also includes a change to the error message thrown in #14 to provide better information about the error. Instead of the old message:

[Single-path] Cannot rewrite call in main (indirect call?)

it will throw the message:

[Single-path] Cannot find function '__divsi3' to rewrite. Was called by 'main' (indirect call?)

…the error message now contains that function's name.
…s is an add of a label. Previously, this would compile but produce incorrect object code.
Copy link
Member

@schoeberl schoeberl left a comment

Choose a reason for hiding this comment

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

LGTM, although I am not really competent to review changes in the compiler.

@schoeberl schoeberl merged commit 8cae0f6 into t-crest:master Nov 23, 2018
@Emoun Emoun deleted the bundle_load_label branch November 25, 2018 16:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants