summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2013-08-15 19:21:10 +0000
committerAaron Watry <awatry@gmail.com>2013-08-15 19:21:10 +0000
commit8548725f290ddae3feef2a15fc672010087c939b (patch)
tree95383b79784807889e58b6e3e453faafd9ab07ff /clang/lib/CodeGen/CodeGenModule.cpp
parent7659157f1b926321530a44ce8fc7a39a0360a08e (diff)
downloadbcm5719-llvm-8548725f290ddae3feef2a15fc672010087c939b.tar.gz
bcm5719-llvm-8548725f290ddae3feef2a15fc672010087c939b.zip
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: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 188477
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud