gdb/lldb打印SIMD寄存器的值

在gdb或者lldb调试时打印SIMD寄存器的值的方法

gdb

p $v8.b
p $v8.h
p $v8.s

lldb

p (char __attribute__((ext_vector_type(16)))) $v8
p (short __attribute__((ext_vector_type(8)))) $v8
p (float __attribute__((ext_vector_type(4)))) $v8



Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • jinja.cpp:为什么我要手写一个 Jinja2 编译器
  • LLM Super Weight 实测:剪枝降智与量化思考
  • MNN支持Eagle3
  • LLM训练实战手册
  • MNN模型支持:Qwen3-VL