Closed stormalf closed 3 months ago
The following extended assembly is not managed yet by chibicc :
static WEBP_INLINE void GetCPUInfo(int cpu_info[4], int info_type) { asm volatile ( "xchg{q}\t{%%rbx}, %q1\n" "cpuid\n" "xchg{q}\t{%%rbx}, %q1\n" : "=a"(cpu_info[0]), "=&r"(cpu_info[1]), "=c"(cpu_info[2]), "=d"(cpu_info[3]) : "a"(info_type), "c"(0)); }
CC libsharpyuv_la-sharpyuv_cpu.lo ../src/dsp/cpu.c:55: : "=a"(cpu_info[0]), "=b"(cpu_info[1]), "=c"(cpu_info[2]), "=d"(cpu_info[3]) ^ tokenize.c extended_asm.c output_asm 398: in skip : expected ')'
the specific case here about libwebp not fixed. Only some cases about arrays in extended assembly was fixed.
The following extended assembly is not managed yet by chibicc :
static WEBP_INLINE void GetCPUInfo(int cpu_info[4], int info_type) { asm volatile ( "xchg{q}\t{%%rbx}, %q1\n" "cpuid\n" "xchg{q}\t{%%rbx}, %q1\n" : "=a"(cpu_info[0]), "=&r"(cpu_info[1]), "=c"(cpu_info[2]), "=d"(cpu_info[3]) : "a"(info_type), "c"(0)); }
CC libsharpyuv_la-sharpyuv_cpu.lo ../src/dsp/cpu.c:55: : "=a"(cpu_info[0]), "=b"(cpu_info[1]), "=c"(cpu_info[2]), "=d"(cpu_info[3]) ^ tokenize.c extended_asm.c output_asm 398: in skip : expected ')'