This patch adds a test for the assembly code emitted with XRay instrumentation. It also fixes a bug where the operand of a jump instruction must be not the number of bytes to jump over, but rather the number of 4-byte instructions.
Details
Details
Diff Detail
Diff Detail
Event Timeline
| lib/Target/AArch64/AArch64AsmPrinter.cpp | ||
|---|---|---|
| 228 | Why not just write out the actual number of instructions? i.e. why not just: .addImm(8) ? | |
| test/CodeGen/AArch64/xray-attribute-instrumentation.ll | ||
| 26 | You might want to make sure that the xray_instr_map section is written out and that you're seeing the references to the correct labels? | |
Why not just write out the actual number of instructions? i.e. why not just: .addImm(8) ?