https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107731
Bug ID: 107731 Summary: error: invalid 'asm': invalid use of '%c' Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: chenglulu at loongson dot cn CC: paulhua at gcc dot gnu.org, xry111 at gcc dot gnu.org Target Milestone: --- Target: loongarch64-linux-gnu void test(void) { asm (".long %c0" ::"i"(10)); } Compiling this test case under loongarch64 failed with the following information: test1.c: In function 'test': test1.c:3:3: error: invalid 'asm': invalid use of '%c' 3 | asm (".long %c0" | ^~~