Incremental improvement to the handling of the x86 "Jump if rCX Zero"
authorKevin Enderby <enderby@apple.com>
Tue, 8 Jun 2010 23:48:44 +0000 (23:48 +0000)
committerKevin Enderby <enderby@apple.com>
Tue, 8 Jun 2010 23:48:44 +0000 (23:48 +0000)
commit09712b57cedb4493b487652b0395ac1d502b75a4
tree8f3a73d7dca1114c79986a7ae8b300c96cce8e0f
parent497f1eb2b89721e81b65237df90d23cb60de16b0
Incremental improvement to the handling of the x86 "Jump if rCX Zero"
instruction.  Added the 64-bit version "jrcxz" so it is recognized and also
added the checks for incorrect uses of "jcxz" in 64-bit mode and "jrcxz" in
32-bit mode.  Still to do is to correctly handle the encoding of the
instruction adding the Address-size override prefix byte, 0x67, when the width
of the count register is not the same as the mode the machine is running in.
Which for example means the encoding of "jecxz" depends if you are assembling
as a 32-bit target or a 64-bit target.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105661 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp