diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-01-28 06:48:25 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-01-28 06:48:25 +0000 |
commit | 4aee1bb2223e59efb814a694edaecd07a3418da0 (patch) | |
tree | 821e01df9d27ffb3ad93a3a24905f3edc63328f2 /lib/Target/X86/Utils | |
parent | 64437ead05db4f5d28e697058180ae575c3cf75b (diff) | |
download | external_llvm-4aee1bb2223e59efb814a694edaecd07a3418da0.zip external_llvm-4aee1bb2223e59efb814a694edaecd07a3418da0.tar.gz external_llvm-4aee1bb2223e59efb814a694edaecd07a3418da0.tar.bz2 |
Fix inconsistent usage of PALIGN and PALIGNR when referring to the same instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/Utils')
-rw-r--r-- | lib/Target/X86/Utils/X86ShuffleDecode.cpp | 3 | ||||
-rw-r--r-- | lib/Target/X86/Utils/X86ShuffleDecode.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/X86/Utils/X86ShuffleDecode.cpp b/lib/Target/X86/Utils/X86ShuffleDecode.cpp index 9694808..b490f27 100644 --- a/lib/Target/X86/Utils/X86ShuffleDecode.cpp +++ b/lib/Target/X86/Utils/X86ShuffleDecode.cpp @@ -61,7 +61,8 @@ void DecodeMOVLHPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask) { ShuffleMask.push_back(NElts+i); } -void DecodePALIGNMask(MVT VT, unsigned Imm, SmallVectorImpl<int> &ShuffleMask) { +void DecodePALIGNRMask(MVT VT, unsigned Imm, + SmallVectorImpl<int> &ShuffleMask) { unsigned NumElts = VT.getVectorNumElements(); unsigned Offset = Imm * (VT.getVectorElementType().getSizeInBits() / 8); diff --git a/lib/Target/X86/Utils/X86ShuffleDecode.h b/lib/Target/X86/Utils/X86ShuffleDecode.h index 69ce443..017ab32 100644 --- a/lib/Target/X86/Utils/X86ShuffleDecode.h +++ b/lib/Target/X86/Utils/X86ShuffleDecode.h @@ -35,7 +35,7 @@ void DecodeMOVHLPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask); // <0,2> or <0,1,4,5> void DecodeMOVLHPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask); -void DecodePALIGNMask(MVT VT, unsigned Imm, SmallVectorImpl<int> &ShuffleMask); +void DecodePALIGNRMask(MVT VT, unsigned Imm, SmallVectorImpl<int> &ShuffleMask); void DecodePSHUFMask(MVT VT, unsigned Imm, SmallVectorImpl<int> &ShuffleMask); |