AMDGPU: Fix commuting v_sub_u16
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 8 Dec 2016 19:52:38 +0000 (19:52 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 8 Dec 2016 19:52:38 +0000 (19:52 +0000)
commit6c06a6f48a10ab242f64cd9a95942abb87117832
tree8376e63630b1b1381cc215576349a3f2505a33b5
parent50ea93a2bda4b4a5a4ea7a879182d0c0cf2f002c
AMDGPU: Fix commuting v_sub_u16

The correct commutable opcode was set to itself, so this
was simply swapping the operands to commute instead of also
changing the opcode to v_subrev_u16.

llvm-svn: 289093
llvm/lib/Target/AMDGPU/VOP2Instructions.td
llvm/test/CodeGen/AMDGPU/sub.i16.ll [new file with mode: 0644]