R600/SI: Expand udiv v[24]i32 for SI and v2i32 for EG
authorAaron Watry <awatry@gmail.com>
Tue, 25 Jun 2013 13:55:43 +0000 (13:55 +0000)
committerAaron Watry <awatry@gmail.com>
Tue, 25 Jun 2013 13:55:43 +0000 (13:55 +0000)
commite80978f9dd6bd8951d968fd2e85ec4c0996b62f5
treef5b1141f5f175c4e4a32ca21dc8abb2139204d77
parentc1fcf01d7fa41171fc715618d0a9359df7865aa6
R600/SI: Expand udiv v[24]i32 for SI and v2i32 for EG

Also add lit test for both cases on SI, and v2i32 for evergreen.

Note: I followed the guidance of the v4i32 EG check... UDIV produces really
complex code, so let's just check that the instruction was lowered
successfully.

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184843 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/R600ISelLowering.cpp
lib/Target/R600/SIISelLowering.cpp
test/CodeGen/R600/udiv.ll