[X86][XOP] Enable commutation for XOP instructions
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 14 Feb 2015 22:40:46 +0000 (22:40 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 14 Feb 2015 22:40:46 +0000 (22:40 +0000)
commit6d5ee8a8b598850c80a4a33be616ef87906c2d8d
tree7c15a9936c10a99328da1268fb27c2a8cdd58f01
parent32f60795f500ca4e5faccdf9789c7eeb1e710be1
[X86][XOP] Enable commutation for XOP instructions

Patch to allow XOP instructions (integer comparison and integer multiply-add) to be commuted. The comparison instructions sometimes require the compare mode to be flipped but the remaining instructions can use default commutation modes.

This patch also sets the SSE domains of all the XOP instructions.

Differential Revision: http://reviews.llvm.org/D7646

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229267 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrXOP.td
test/CodeGen/X86/commute-xop.ll [new file with mode: 0644]