diff options
author | Chris Lattner <sabre@nondot.org> | 2010-07-07 22:27:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-07-07 22:27:31 +0000 |
commit | 9fc05227a2596c545b845ed9a72673995e49d16b (patch) | |
tree | 80e881778ade5df564b576347d6303c2849475d6 /lib/Target/X86/X86InstrInfo.h | |
parent | cc69e13a36b2238d8e0a2fc01463d16943c08936 (diff) | |
download | external_llvm-9fc05227a2596c545b845ed9a72673995e49d16b.zip external_llvm-9fc05227a2596c545b845ed9a72673995e49d16b.tar.gz external_llvm-9fc05227a2596c545b845ed9a72673995e49d16b.tar.bz2 |
Implement the major chunk of PR7195: support for 'callw'
in the integrated assembler. Still some discussion to be
done.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107825 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrInfo.h')
-rw-r--r-- | lib/Target/X86/X86InstrInfo.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/Target/X86/X86InstrInfo.h b/lib/Target/X86/X86InstrInfo.h index 0b45516..06d5664 100644 --- a/lib/Target/X86/X86InstrInfo.h +++ b/lib/Target/X86/X86InstrInfo.h @@ -360,9 +360,10 @@ namespace X86II { Imm8 = 1 << ImmShift, Imm8PCRel = 2 << ImmShift, Imm16 = 3 << ImmShift, - Imm32 = 4 << ImmShift, - Imm32PCRel = 5 << ImmShift, - Imm64 = 6 << ImmShift, + Imm16PCRel = 4 << ImmShift, + Imm32 = 5 << ImmShift, + Imm32PCRel = 6 << ImmShift, + Imm64 = 7 << ImmShift, //===------------------------------------------------------------------===// // FP Instruction Classification... Zero is non-fp instruction. @@ -460,7 +461,8 @@ namespace X86II { default: assert(0 && "Unknown immediate size"); case X86II::Imm8: case X86II::Imm8PCRel: return 1; - case X86II::Imm16: return 2; + case X86II::Imm16: + case X86II::Imm16PCRel: return 2; case X86II::Imm32: case X86II::Imm32PCRel: return 4; case X86II::Imm64: return 8; @@ -473,6 +475,7 @@ namespace X86II { switch (TSFlags & X86II::ImmMask) { default: assert(0 && "Unknown immediate size"); case X86II::Imm8PCRel: + case X86II::Imm16PCRel: case X86II::Imm32PCRel: return true; case X86II::Imm8: |