llvm-6502/lib
Bill Wendling c5cbda12e9 - Fix comment so that it describes how the code really works:
// fold (or (shl x, (*ext y)), (srl x, (*ext (sub 32, y)))) ->
   //   (rotl x, y)
   // fold (or (shl x, (*ext y)), (srl x, (*ext (sub 32, y)))) ->
   //   (rotr x, (sub 32, y))

Example: (x == 0xDEADBEEF and y == 4)

    (x << 4) | (x >> 28)
 => 0xEADBEEF0 | 0x0000000D
 => 0xEADBEEFD

    (rotl x, 4)
 => 0xEADBEEFD

    (rotr x, 28)
 => 0xEADBEEFD

- Fix comment and code for second version. It wasn't using the rot* propertly.

   // fold (or (shl x, (*ext (sub 32, y))), (srl x, (*ext r))) -> 
   //   (rotr x, y)
   // fold (or (shl x, (*ext (sub 32, y))), (srl x, (*ext r))) ->
   //   (rotl x, (sub 32, y))

    (x << 28) | (x >> 4)
 => 0xD0000000 | 0x0DEADBEE
 => 0xDDEADBEE

    (rotl x, 4)
 => 0xEADBEEFD

    (rotr x, 28)
 => (0xEADBEEFD)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55575 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-31 00:37:27 +00:00
..
Analysis rename destroy -> releaseMemory to properly hook into passmgr. 2008-08-28 22:56:53 +00:00
Archive Fold the useful features of alist and alist_node into ilist, and 2008-07-28 21:51:04 +00:00
AsmParser regenerate 2008-08-29 17:20:18 +00:00
Bitcode add #include 2008-08-23 21:33:24 +00:00
CodeGen - Fix comment so that it describes how the code really works: 2008-08-31 00:37:27 +00:00
Debugger Add #include 2008-08-23 21:34:34 +00:00
ExecutionEngine Add support for JIT exceptions on Darwin. Since we're dealing with libgcc, 2008-08-28 22:34:49 +00:00
Linker Reimplement LinkFunctionProtos in terms of GetLinkageResult. This fixes 2008-07-14 07:23:24 +00:00
Support Updating VC++ project. 2008-08-24 11:56:40 +00:00
System add a helper method to sys::Path for clang, patch by 2008-08-11 23:39:47 +00:00
Target fix some 80-col violations 2008-08-30 10:09:02 +00:00
Transforms Do not apply the transformation if the target does not support DestTy natively. 2008-08-27 20:55:23 +00:00
VMCore PR2731: C and Ocaml bindings for setTailCall and isTailCall. 2008-08-30 16:34:54 +00:00
Makefile