From 120fba91a3d894daaa9317474b51e1fed8577a83 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 17 Apr 2007 22:39:58 +0000 Subject: [PATCH] dag combiner just got better at pruning bits. This fixes CodeGen/ARM/rev.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36222 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMInstrInfo.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/ARM/ARMInstrInfo.td b/lib/Target/ARM/ARMInstrInfo.td index 1c3e34bd304..43cbed24403 100644 --- a/lib/Target/ARM/ARMInstrInfo.td +++ b/lib/Target/ARM/ARMInstrInfo.td @@ -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]>; -- 2.34.1