diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-09-29 08:33:34 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-09-29 08:33:34 +0000 |
commit | f63c806e110f84e7993eb59cf2976f7328f20733 (patch) | |
tree | 3c507b478ef9fd491493e5a9c141ba3c22165218 /lib/Target/X86/MCTargetDesc | |
parent | bd0decae3c0af9eb38592f305935559782096c9e (diff) | |
download | external_llvm-f63c806e110f84e7993eb59cf2976f7328f20733.zip external_llvm-f63c806e110f84e7993eb59cf2976f7328f20733.tar.gz external_llvm-f63c806e110f84e7993eb59cf2976f7328f20733.tar.bz2 |
Change type of XOP flag in code emitters to a bool. Remove a some unneeded cases from switch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191632 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/MCTargetDesc')
-rw-r--r-- | lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp b/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp index ce89f05..7952607 100644 --- a/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp +++ b/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp @@ -564,7 +564,7 @@ void X86MCCodeEmitter::EmitVEXOpcodePrefix(uint64_t TSFlags, unsigned &CurByte, unsigned char VEX_W = 0; // XOP: Use XOP prefix byte 0x8f instead of VEX. - unsigned char XOP = 0; + bool XOP = false; // VEX_5M (VEX m-mmmmm field): // @@ -621,7 +621,7 @@ void X86MCCodeEmitter::EmitVEXOpcodePrefix(uint64_t TSFlags, unsigned &CurByte, VEX_W = 1; if ((TSFlags >> X86II::VEXShift) & X86II::XOP) - XOP = 1; + XOP = true; if ((TSFlags >> X86II::VEXShift) & X86II::VEX_L) VEX_L = 1; @@ -669,11 +669,8 @@ void X86MCCodeEmitter::EmitVEXOpcodePrefix(uint64_t TSFlags, unsigned &CurByte, case X86II::XOPA: VEX_5M = 0xA; break; - case X86II::A6: // Bypass: Not used by VEX - case X86II::A7: // Bypass: Not used by VEX - case X86II::TB: // Bypass: Not used by VEX - case 0: - break; // No prefix! + case X86II::TB: // VEX_5M/VEX_PP already correct + break; } |