diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-12-19 18:35:09 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-12-19 18:35:09 +0000 |
| commit | 79874566ce258318b1d9b858792d2ba218d4453d (patch) | |
| tree | 9d2957dfdf7b6eec3a9e1667a2ecd4b5df3e3d07 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | c56c8453778cc070feee78f4a80fe85f6aa2d85c (diff) | |
generalize the sadd creation code to not require that the
sadd formed is half the size of the original type. We can
now compile this into a sadd.i8:
unsigned char X(char a, char b) {
int res = a+b;
if ((unsigned )(res+128) > 255U)
abort();
return res;
}
llvm-svn: 122178
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
