espressif / newlib-esp32

Version of newlib used in ESP32 ROM and ESP-IDF
GNU General Public License v2.0
31 stars 18 forks source link

Invalid asm code in newlib/libc/machine/xtensa/memcpy.S #11

Open berolinux opened 1 year ago

berolinux commented 1 year ago

Line 261 of newlib/libc/machine/xtensa/memcpy.S says srli a11, a8, 30 This is undefined; srli shifts only by 0 to 15 bits, not 30. Some assemblers seem to translate the srli statement to extui a11, a8, 30, 2, but some (e.g. clang) don't.