done
authorChris Lattner <sabre@nondot.org>
Wed, 29 Nov 2006 07:21:46 +0000 (07:21 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 29 Nov 2006 07:21:46 +0000 (07:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32013 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/README.txt

index 23874b7be882a942ff1cd195d02b9150158b23ae..422d02165519247186122f17cae7f63028956842 100644 (file)
@@ -303,22 +303,6 @@ unsigned int swap_32(unsigned int v) {
   return v;
 }
 
-Nor is this:
-
-ushort %bad(ushort %a) {
-entry:
-        %tmp = cast ushort %a to uint           ; <uint> [#uses=1]
-        %tmp2 = shr uint %tmp, ubyte 8          ; <uint> [#uses=1]
-        %tmp2 = cast uint %tmp2 to ushort               ; <ushort> [#uses=1]
-        %tmp5 = shl ushort %a, ubyte 8          ; <ushort> [#uses=1]
-        %tmp6 = or ushort %tmp2, %tmp5          ; <ushort> [#uses=1]
-        ret ushort %tmp6
-}
-
-unsigned short bad(unsigned short a) {
-       return ((a & 0xff00) >> 8 | (a & 0x00ff) << 8);
-}
-
 //===---------------------------------------------------------------------===//
 
 These should turn into single 16-bit (unaligned?) loads on little/big endian