Skip to content

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

@lucic71

Description

@lucic71

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].

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions