llvm reports: unsupported inline asm: input with type 'void *' matching output with type 'int'
问题 I have the below inline assembly code: int get_year(int a, int *b, char * c) { int ret, t1, t2; asm ( "addl %3, %[a] \n\t" "movl %[a], %[t1] \n\t" "movl $58, %%edx \n\t" "movb %%dl, 0x04(%1) \n\t" : [t1] "=r" (t1), "=&D" (t2) : [a] "r" (a), "rm" (*b), "1" (c) : "edx", "memory" ); ret = t1; return ret; } When I compile this via llvm, error dumps: error: unsupported inline asm: input with type 'char *' matching output with type 'int' : [a] "r" (a), "rm" (*b), "1" (c) ^ However, the memcpy