dag combiner just got better at pruning bits. This fixes CodeGen/ARM/rev.ll
authorChris Lattner <sabre@nondot.org>
Tue, 17 Apr 2007 22:39:58 +0000 (22:39 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 17 Apr 2007 22:39:58 +0000 (22:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36222 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrInfo.td

index 1c3e34bd3044ff300bdeb0806129818805914f71..43cbed2440357a030602e471057005d73968674f 100644 (file)
@@ -982,7 +982,7 @@ def REVSH : AI<(ops GPR:$dst, GPR:$src),
                "revsh $dst, $src",
                [(set GPR:$dst,
                   (sext_inreg
-                    (or (srl (and GPR:$src, 0xFFFF), 8),
+                    (or (srl (and GPR:$src, 0xFF00), 8),
                         (shl GPR:$src, 8)), i16))]>,
                Requires<[IsARM, HasV6]>;