[llvm-dev] PowerPC wait encoding is invalid for e500mc

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[llvm-dev] PowerPC wait encoding is invalid for e500mc

Alberto Barbaro via llvm-dev

Power ISA 2.07B and 3.0B have different encodings for wait instruction (0x7C00007C vs 0x7C00003C). We happen to partially support the latter, and mistakingly emit the wrong opcode for targets like e500mc.

I submitted a bugreport at https://bugs.llvm.org/show_bug.cgi?id=39834 with all the necessary details.

Since I am not familiar with llvm tablegen well enough to quickly write a patch that will support both variants of the instruction, a fix or a reference on how to conditionally emit different opcodes will be appreciated.

Best regards,

LLVM Developers mailing list
[hidden email]

signature.asc (849 bytes) Download Attachment