In the CBackend, use casts to force integer add, subtract, and
authorDan Gohman <gohman@apple.com>
Fri, 18 Jul 2008 18:43:12 +0000 (18:43 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 18 Jul 2008 18:43:12 +0000 (18:43 +0000)
commit5a11abaf2c21e203acaedea37ebd151fa1124d89
tree80fef8e3543f00e135f5bb7a2520bc59b1706d5c
parentfa82857e413578c35b39f5dc1e7ea8525e02e6bf
In the CBackend, use casts to force integer add, subtract, and
multiply to be done as unsigned, so that they have well defined
behavior on overflow. This fixes PR2408.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53767 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/CBackend/CBackend.cpp
test/CodeGen/CBackend/2007-02-23-NameConflicts.ll
test/CodeGen/CBackend/pr2408.ll [new file with mode: 0644]