[PATCH 1/1] Implement trunc builtin.

OpenCL C lang says that trunc rounds towards zero.
llvm.trunc.* intrinsic rounds to integer not larger in magnitude.
These definitions are equivalent.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>

OpenCL C lang says that trunc rounds towards zero.
llvm.trunc.* intrinsic rounds to integer not larger in magnitude.
These definitions are equivalent.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>

OpenCL C lang says that trunc rounds towards zero.
llvm.trunc.* intrinsic rounds to integer not larger in magnitude.
These definitions are equivalent.

I've committed this, thanks.

-Tom