From 97f48c39fd158ad1a701002e2d6798c4b4ae4ab8 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 6 Nov 2008 22:15:19 +0000 Subject: Encode extend instructions; more clean up. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58818 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMInstrInfo.h | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) (limited to 'lib/Target/ARM/ARMInstrInfo.h') diff --git a/lib/Target/ARM/ARMInstrInfo.h b/lib/Target/ARM/ARMInstrInfo.h index c2eb54c..22fe379 100644 --- a/lib/Target/ARM/ARMInstrInfo.h +++ b/lib/Target/ARM/ARMInstrInfo.h @@ -95,28 +95,34 @@ namespace ARMII { StMulFrm = 12 << FormShift, // Miscellaneous arithmetic instructions - ArithMisc = 13 << FormShift, + ArithMiscFrm= 13 << FormShift, + + // Extend instructions + ExtFrm = 14 << FormShift, // Thumb format - ThumbFrm = 14 << FormShift, + ThumbFrm = 15 << FormShift, // VFP format - VPFFrm = 15 << FormShift, + VPFFrm = 16 << FormShift, //===------------------------------------------------------------------===// // Field shifts - such shifts are used to set field while generating // machine instructions. - RotImmShift = 8, - RegRsShift = 8, - RegRdLoShift = 12, - RegRdShift = 12, - RegRdHiShift = 16, - RegRnShift = 16, - L_BitShift = 20, - S_BitShift = 20, - U_BitShift = 23, - IndexShift = 24, - I_BitShift = 25 + SoRotImmShift = 8, + RegRsShift = 8, + ExtRotImmShift = 10, + RegRdLoShift = 12, + RegRdShift = 12, + RegRdHiShift = 16, + RegRnShift = 16, + S_BitShift = 20, + W_BitShift = 21, + AM3_I_BitShift = 22, + U_BitShift = 23, + P_BitShift = 24, + I_BitShift = 25, + CondShift = 28 }; } -- cgit v1.1