ESP32 S3 PIE inline assembly
Posted: Sun Apr 13, 2025 1:15 am
I am using ESP IDF in VS Code. How can I get the compiler to recognize the extended instruction set for inline assembly. Regular assembly instructions it can compile, but not the extended instruction set. I also have no problem with compiling assembly code in .S files, but I do not want to call those functions, since they create some overhead.
#define LOAD16_STORE128_MACRO(dest, source) \
__asm__ __volatile__( \
"EE.VLDBC.16 q0, %1 \n" \
"ST.QR q0, %0, 0 \n" \
: /* No outputs */ \
: "r" (dest), "r" (source) \
: "q0" \
)
If I could get this to compile, I would be quite happy.
Is there a compiler flag I need to set, some other compiler I need to use, something I need to configure in the esp idf? Any help would be appreciated, thanks!
Here is also the compiler error I get:
error: unknown register name 'q0' in 'asm'
#define LOAD16_STORE128_MACRO(dest, source) \
__asm__ __volatile__( \
"EE.VLDBC.16 q0, %1 \n" \
"ST.QR q0, %0, 0 \n" \
: /* No outputs */ \
: "r" (dest), "r" (source) \
: "q0" \
)
If I could get this to compile, I would be quite happy.
Is there a compiler flag I need to set, some other compiler I need to use, something I need to configure in the esp idf? Any help would be appreciated, thanks!
Here is also the compiler error I get:
error: unknown register name 'q0' in 'asm'