Fix bug in isFloatingPoint()
[oota-llvm.git] / include / llvm / CodeGen / ValueTypes.h
index cbf37a60e1f6eb11b76346587cfb1b99b33f23cc..be16aa0c60ced2740f8fbf69d39bfaf867d5ea0b 100644 (file)
@@ -85,7 +85,7 @@ namespace MVT {  // MVT = Machine Value Types
   /// MVT::isFloatingPoint - Return true if this is a simple FP, or a packed
   /// vector FP type.
   static inline bool isFloatingPoint(ValueType VT) {
-    return (VT >= f32 && VT <= f128) || (VT >= v4f32 && VT <= v2f64);
+    return (VT >= f32 && VT <= f128) || (VT >= v2f32 && VT <= v2f64);
   }
   
   /// MVT::isVector - Return true if this is a packed vector type (i.e. not