Skip to content
Commit 1f3c9ba9 authored by Tom Stellard's avatar Tom Stellard
Browse files

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.

Patch by: Jan Vesely

Reviewed-by: default avatarTom Stellard <thomas.stellard@amd.com>
Signed-off-by: default avatarJan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 197769
parent c0a5aaea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment