Problem occurs when trying to debug an application using Valgrind (current SVN trunk). Reproducible: Always Steps to Reproduce: 1. Run Valgrind with application using OS X cryptographic libraries. Actual Results: vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x3A 0xDF ==96147== valgrind: Unrecognised instruction at address 0x330be41. ==96147== at 0x330BE41: aes_encrypt_key_hw (in /usr/lib/system/libcommonCrypto.dylib) Expected Results: No information about unhandled instruction when running an application.
Created attachment 72632 [details] Valgrind output.
This is the same problem as discussed in bug 290655 comment 13 and 14. There is currently no plan to have SSE 4 in 32 bits mode. So, at least for the moment, the only solution is to switch to 64 bit app.
Understand. Anyway, I have created stubs for a few instructions (AESDEC, AESDECLAST, AESENC, AESENCLAST, AESIMC, AESKEYGENASSIST and PEXTRD). It made my application working. Maybe it will help someone.
Created attachment 72871 [details] Stubs for several SSE instructions in x86 mode.