summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJason W Kim <jason.w.kim.2009@gmail.com>2011-01-12 23:21:49 +0000
committerJason W Kim <jason.w.kim.2009@gmail.com>2011-01-12 23:21:49 +0000
commite9eae0f887361a749fee696102492e776591b523 (patch)
treed40025617d873ad03c724b9a087d889fa714756c /llvm/lib
parente63dfeee36fdc4c83b1d68d3e8b727da4f9916b9 (diff)
downloadbcm5719-llvm-e9eae0f887361a749fee696102492e776591b523.tar.gz
bcm5719-llvm-e9eae0f887361a749fee696102492e776591b523.zip
JimG sez: "The value-kinds look like masks, but they're not consistently used
that way, unfortunately. If you want to change them to work additively instead of a one-variant-kind-per-symbolref, that's great and I completely agree it's worth doing, but it really should be a separate patch. Until then, this isn't correct." So I am reverting this bit until a more opportune time. llvm-svn: 123340
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMAsmPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
index cce15766111..d1a975d3423 100644
--- a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
+++ b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
@@ -189,10 +189,10 @@ void ARMAsmPrinter::printOperand(const MachineInstr *MI, int OpNum,
int64_t Imm = MO.getImm();
O << '#';
if ((Modifier && strcmp(Modifier, "lo16") == 0) ||
- (TF & ARMII::MO_LO16))
+ (TF == ARMII::MO_LO16))
O << ":lower16:";
else if ((Modifier && strcmp(Modifier, "hi16") == 0) ||
- (TF & ARMII::MO_HI16))
+ (TF == ARMII::MO_HI16))
O << ":upper16:";
O << Imm;
break;
OpenPOWER on IntegriCloud