OSDN Git Service

[X86][PCLMUL] Enable commutation for PCLMUL instructions
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 26 Jan 2015 22:00:18 +0000 (22:00 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 26 Jan 2015 22:00:18 +0000 (22:00 +0000)
commit3ba85ab23a68a494d2c72310378eae10d10b37e0
tree25de61f686477d36aa8e50286de7e2d263411758
parent7006a12ba39cf2016850dd3e5b8543e5fc5f2f41
[X86][PCLMUL] Enable commutation for PCLMUL instructions

Patch to allow (v)pclmulqdq to be commuted - swaps the src registers and inverts the immediate (low/high) src mask.

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

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