Skip to content
Commit 8548725f authored by Aaron Watry's avatar Aaron Watry
Browse files

Add rhadd builtin



rhadd = (x+y+1)>>1

Implemented as:
(x>>1) + (y>>1) + ((x&1)|(y&1))

This prevents us having to do assembly addition and overflow detection

Reviewed-by: default avatarTom Stellard <thomas.stellard@amd.com>
llvm-svn: 188477
parent 7659157f
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