Also copy/modify the unary_intrin.inc from math/ to make the intrinsic declaration somewhat reusable. Passes CL CTS integer_ops/test_integer_ops popcount tests for CL 1.2 Tested-by on GCN 1.0 (Pitcairn) Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 312854
7 lines
164 B
C
7 lines
164 B
C
#undef popcount
|
|
#define popcount __clc_popcount
|
|
|
|
#define __CLC_FUNCTION __clc_popcount
|
|
#define __CLC_INTRINSIC "llvm.ctpop"
|
|
#include <clc/integer/unary_intrin.inc>
|