espressif / llvm-project

Fork of LLVM with Xtensa specific patches. To be upstreamed.
Other
229 stars 20 forks source link

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

Closed lucic71 closed 1 year ago

lucic71 commented 1 year ago

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

gerekon commented 1 year ago

Closed with a25fd8809709026a9c7caf574b2e21235c41df93