[XRay] Fix Hexagon sled version
authorFangrui Song <i@maskray.me>
Wed, 28 Dec 2022 20:03:09 +0000 (12:03 -0800)
committerFangrui Song <i@maskray.me>
Wed, 28 Dec 2022 20:03:09 +0000 (12:03 -0800)
commit27751bed60bcb0a05c5e85608ea03ff6f55cb14b
tree52f808ce385740a70d3f691a28338742cbdf9c7a
parent75019f18bd4f563a9335581bbc34e81876d80bf0
[XRay] Fix Hexagon sled version

D113638 emitted version 0 for XRaySledEntry, which will lead to an incorrect
address computation in the runtime.

While here, improve the test.
llvm/lib/Target/Hexagon/HexagonAsmPrinter.cpp
llvm/test/CodeGen/Hexagon/xray.ll