[PATCH] Minor fix for FMA3 instruction encoding in JIT

Chris Bieneman cbieneman at apple.com
Tue Aug 20 17:06:01 PDT 2013


Hi,

This patch fixes an issue with FMA3 instruction encoding.

In LLVM FMA3 operands are dst, src1, src2, src3, however dst is not encoded as it is always src1. This was causing the encoding of the operands to be off by one.

I’ve also put together a second small patch which adds a test case and extends lit to have an ‘fma3’ available_feature and provides a test case for using the fma intrinsics in lli.

Thanks,
-Chris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fma3-jit-test.diff
Type: application/octet-stream
Size: 1455 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130820/ee7abe71/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fma3-jit-patch.diff
Type: application/octet-stream
Size: 829 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130820/ee7abe71/attachment-0001.obj>


More information about the llvm-commits mailing list