aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
diff options
context:
space:
mode:
authorMichael Kuperstein <michael.m.kuperstein@intel.com>2015-05-13 10:28:46 +0000
committerMichael Kuperstein <michael.m.kuperstein@intel.com>2015-05-13 10:28:46 +0000
commitc3434b390d6ea255aa4bd82cfd6ddcdee99e4a23 (patch)
tree94dc79d894cf6e87f33787cba82f5a731a3a96be /llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
parenta7b142603da5ae63232b727bb20b997cadbaf4bb (diff)
downloadllvm-c3434b390d6ea255aa4bd82cfd6ddcdee99e4a23.zip
llvm-c3434b390d6ea255aa4bd82cfd6ddcdee99e4a23.tar.gz
llvm-c3434b390d6ea255aa4bd82cfd6ddcdee99e4a23.tar.bz2
Reverting r237234, "Use std::bitset for SubtargetFeatures"
The buildbots are still not satisfied. MIPS and ARM are failing (even though at least MIPS was expected to pass). llvm-svn: 237245
Diffstat (limited to 'llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp b/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
index 5b6e6b2..9a5c829 100644
--- a/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
+++ b/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
@@ -387,7 +387,7 @@ DecodeStatus PPCDisassembler::getInstruction(MCInst &MI, uint64_t &Size,
uint32_t Inst =
(Bytes[0] << 24) | (Bytes[1] << 16) | (Bytes[2] << 8) | (Bytes[3] << 0);
- if (STI.getFeatureBits()[PPC::FeatureQPX]) {
+ if ((STI.getFeatureBits() & PPC::FeatureQPX) != 0) {
DecodeStatus result =
decodeInstruction(DecoderTableQPX32, MI, Inst, Address, this, STI);
if (result != MCDisassembler::Fail)