respect isSigned for vector types, fixing sdiv of vectors etc.
[oota-llvm.git] / lib / Target / CBackend / CBackend.cpp
index c5086c4bfcdb7b5f3f13b891c673adf7877c9cdc..4c361527e2c365653e5f1fd461d090dc19e638a9 100644 (file)
@@ -398,7 +398,7 @@ void CWriter::printStructReturnPointerFunctionType(std::ostream &Out,
 
 std::ostream &
 CWriter::printSimpleType(std::ostream &Out, const Type *Ty, bool isSigned,
-                            const std::string &NameSoFar) {
+                         const std::string &NameSoFar) {
   assert((Ty->isPrimitiveType() || Ty->isInteger() || isa<VectorType>(Ty)) && 
          "Invalid type for printSimpleType");
   switch (Ty->getTypeID()) {
@@ -428,7 +428,7 @@ CWriter::printSimpleType(std::ostream &Out, const Type *Ty, bool isSigned,
       
   case Type::VectorTyID: {
     const VectorType *VTy = cast<VectorType>(Ty);
-    return printType(Out, VTy->getElementType(), false,
+    return printSimpleType(Out, VTy->getElementType(), isSigned,
                      " __attribute__((vector_size(" +
                      utostr(TD->getABITypeSize(VTy)) + " ))) " + NameSoFar);
   }