OSDN Git Service

[X86] Add comments to the end of FMA3 instructions to make the operation clear
authorCraig Topper <craig.topper@intel.com>
Sat, 10 Mar 2018 21:30:46 +0000 (21:30 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 10 Mar 2018 21:30:46 +0000 (21:30 +0000)
commit9d122e2d97711fb0c64dc7195c6d53b460d16d36
tree8d89446f1a67499c239baf923416bf1aa07f26b0
parent50cc600602355f2a9270798ffd52a0090044faa9
[X86] Add comments to the end of FMA3 instructions to make the operation clear

Summary:
There are 3 different operand orders for FMA instructions so figuring out the exact operation being performed requires a lot of thought.

This patch adds a comment to the end of the assembly line to print the exact operation.

I think I've got all the instructions in here except the ones with builtin rounding.

I didn't update all tests, but I assume we can get them as we regenerate tests in the future.

Reviewers: spatel, v_klochkov, RKSimon

Reviewed By: spatel

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D44345

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327225 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/InstPrinter/X86InstComments.cpp
test/CodeGen/X86/avx512-intrinsics.ll
test/CodeGen/X86/avx512vl-intrinsics.ll
test/CodeGen/X86/fma-commute-x86.ll
test/CodeGen/X86/fma-intrinsics-x86.ll
test/CodeGen/X86/fma-schedule.ll
test/CodeGen/X86/fma.ll
test/CodeGen/X86/recip-fastmath.ll
test/CodeGen/X86/recip-fastmath2.ll