diff options
author | Chris Lattner <sabre@nondot.org> | 2006-11-29 07:18:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-11-29 07:18:39 +0000 |
commit | 46b96055cf34dca14ca4d3f853fa8cd8785e5517 (patch) | |
tree | 481bcdb98fb167fc1bc00bbec0bbfaa6dd9bb209 /lib/CodeGen/MachineFunction.cpp | |
parent | 6478b2fcd1e8756e75af088d9c6631caa123fbf9 (diff) |
implement cast.ll:test35. With this, we recognize:
unsigned short swp(unsigned short a) {
return ((a & 0xff00) >> 8 | (a & 0x00ff) << 8);
}
as an idiom for bswap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32011 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions