Implement mad_hi built-in
authorAaron Watry <awatry@gmail.com>
Fri, 6 Sep 2013 22:09:51 +0000 (22:09 +0000)
committerAaron Watry <awatry@gmail.com>
Fri, 6 Sep 2013 22:09:51 +0000 (22:09 +0000)
commit3466342f57d83c0f778de9a33b4f73d999101df6
treef1d7385c9ef24f9e72640e4f0d913aa802aacdb5
parent0826dd23c664291c1663f812310b8e5e439641f7
Implement mad_hi built-in

We already have a working mul_hi, and the spec gives us the implementation as:
Returns mul_hi(a,b)+c.

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
llvm-svn: 190211
libclc/generic/include/clc/clc.h
libclc/generic/include/clc/integer/mad_hi.h [new file with mode: 0644]