diff options
author | Eric Christopher <echristo@apple.com> | 2009-08-08 21:55:08 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2009-08-08 21:55:08 +0000 |
commit | 7dfa9f2e563f49d8aed01bc7ae36584af97e9bdc (patch) | |
tree | 756abfe8dd1bed5f13683581425df35608d459ba /llvm/lib/Target/X86/X86InstrInfo.cpp | |
parent | f40886accaf36a739360073366e71369fc0fb064 (diff) | |
download | bcm5719-llvm-7dfa9f2e563f49d8aed01bc7ae36584af97e9bdc.tar.gz bcm5719-llvm-7dfa9f2e563f49d8aed01bc7ae36584af97e9bdc.zip |
Add crc32 instruction and intrinsics. Add a new class of prefix
bytes for F2 0F 38 and propagate. Add a FIXME for a set
of possibilities which correspond to intrinsics already used.
New test.
llvm-svn: 78508
Diffstat (limited to 'llvm/lib/Target/X86/X86InstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp index 393bd5c2ca0..b59f8e854cd 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.cpp +++ b/llvm/lib/Target/X86/X86InstrInfo.cpp @@ -2931,6 +2931,10 @@ static unsigned GetInstSizeWithDesc(const MachineInstr &MI, case X86II::TA: // 0F 3A Need0FPrefix = true; break; + case X86II::TF: // F2 0F 38 + ++FinalSize; + Need0FPrefix = true; + break; case X86II::REP: break; // already handled. case X86II::XS: // F3 0F ++FinalSize; @@ -2966,6 +2970,9 @@ static unsigned GetInstSizeWithDesc(const MachineInstr &MI, case X86II::TA: // 0F 3A ++FinalSize; break; + case X86II::TF: // F2 0F 38 + ++FinalSize; + break; } // If this is a two-address instruction, skip one of the register operands. |