-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fixes PPC tbegin printing #1478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
for the record, please provide the input triggering this bug too. to fix this kind of bug, it is really tricky to fix the autogen files like this .inc file, because it can break something else. we better fix the original code, probably in https://github.com/aquynh/capstone/blob/next/suite/synctools/tablegen/PPC/PPCInstrHTM.td#L30-L31, then run the synctools under https://github.com/aquynh/capstone/blob/next/suite/synctools/ again to generate .inc files. |
The input is : I will try to take a look at this td file |
great!
if you can fix the .td file, just send PR for that one only. i will test &
generate .inc file here.
|
Here is a try. |
this looks nice! can you send this fix to LLVM, and to see what they say? |
will you also fix TD files for #1470? |
See https://reviews.llvm.org/D61935 for LLVM |
i picked up the modified td file, and generated new .inc files, see e9c0772 the output looks good now.
can you now revert the change of this PR on arch/PowerPC/PPCGenAsmWriter.inc? |
This reverts commit 9f0d4ed.
Here you go but it looks like you already merged it :-) |
no i did not merge that, but generated the change from your fix on .td file. you can see some difference: e9c0772 on this fix for .td file, let me know when you get feedback from LLVM. |
@aquynh I think that the modified file PPCInstrHTM.td here https://reviews.llvm.org/D61935#change-55VNPVmjSoAu is now good enough for capstone |
Found by oss-fuzz
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14642
Might be related to #1470
Checked against onlinedisassembler.com