Reputation: 471
I am using a MIPS 64 bit processor that has a CRC32 instruction (not part of the standard instruction set). It's OP Code is b011100. Is there a straight forward way to use this instruction in the asm directive using GCC 4.9.2 without hacking the compile?
Upvotes: 2
Views: 190
Reputation: 12515
My best thought here is to create an inline assembler function that does a define byte statement for that opcode and returns the value in a standard C/C++ manner - basically write your own intrinsic function for it. At least then the hack is isolated to 1 location in the code and can be replaced in the future if your vendor sends you newer code that rectifies this problem.
I would also be complaining to your vendor about this oversight as well. :)
Upvotes: 1