Skip to content
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

srli does not respect assembler semantics (LLVM-253) #70

Closed
lucic71 opened this issue May 23, 2023 · 1 comment
Closed

srli does not respect assembler semantics (LLVM-253) #70

lucic71 opened this issue May 23, 2023 · 1 comment
Labels
Resolution: Done Status: Done Issue is done internally

Comments

@lucic71
Copy link

lucic71 commented May 23, 2023

Hi,

While compiling Nuttx the following error was triggered:

common/xtensa_windowspill.S:153:15: error: expected immediate in range [0, 15]
 srli a3, a3, 32-(64 / 4)

In 8.3.307, the ISA reference mentions that if the immediate is greater than 15 the instruction should be converted to extui.

At the moment the assembler does not do that and takes the semantics of _srli which generates an error when the argument is not in range [0, 15].

@github-actions github-actions bot changed the title srli does not respect assembler semantics srli does not respect assembler semantics (LLVM-253) May 23, 2023
@gerekon
Copy link
Collaborator

gerekon commented Sep 1, 2023

Closed with a25fd88

@gerekon gerekon closed this as completed Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

3 participants