Open nicheng0019 opened 1 year ago
使用./android_build.sh -m armeabi-v7a 命令编译,报错如下:
/workspace/mperf/apps/cpu_pmu_analysis/prefetch.cpp:27:13: error: invalid operand in inline asm: 'prfm pldl1keep, [$0, #64]3:ldr d2, [$0]fmla v3.4s, v2.4s, v1.s[0]add $0, $0, #64prfm pldl1keep, [$0, #64]subs ${1:w}, ${1:w}, #1bne 3b' "prfm pldl1keep, [%[b_ptr], #64]\n" ^ /workspace/mperf/apps/cpu_pmu_analysis/prefetch.cpp:27:13: error: invalid operand in inline asm: 'prfm pldl1keep, [$0, #64]3:ldr d2, [$0]fmla v3.4s, v2.4s, v1.s[0]add $0, $0, #64prfm pldl1keep, [$0, #64]subs ${1:w}, ${1:w}, #1bne 3b' /workspace/mperf/apps/cpu_pmu_analysis/prefetch.cpp:27:13: error: invalid instruction
报错的都是内联汇编代码,目前只有A64的,A32/v7的汇编基本上需要重新实现,不确定官方还会不会支持,一些IoT设备的优化会用到吧。
好的,多谢
使用./android_build.sh -m armeabi-v7a 命令编译,报错如下:
/workspace/mperf/apps/cpu_pmu_analysis/prefetch.cpp:27:13: error: invalid operand in inline asm: 'prfm pldl1keep, [$0, #64]3:ldr d2, [$0]fmla v3.4s, v2.4s, v1.s[0]add $0, $0, #64prfm pldl1keep, [$0, #64]subs ${1:w}, ${1:w}, #1bne 3b' "prfm pldl1keep, [%[b_ptr], #64]\n" ^ /workspace/mperf/apps/cpu_pmu_analysis/prefetch.cpp:27:13: error: invalid operand in inline asm: 'prfm pldl1keep, [$0, #64]3:ldr d2, [$0]fmla v3.4s, v2.4s, v1.s[0]add $0, $0, #64prfm pldl1keep, [$0, #64]subs ${1:w}, ${1:w}, #1bne 3b' /workspace/mperf/apps/cpu_pmu_analysis/prefetch.cpp:27:13: error: invalid instruction