&& type->pointer_levels == 0 && type->size <= 0);
}
+/* Returns true if the specified type is a "signed integer" which is
+ NOT 128 bits integer */
+int
+aop_is_all_signed_subtype (const struct aop_type *type)
+{
+ return (type->kind == ATK_SIGNED_INT
+ && type->pointer_levels == 0 && type->size <= 8);
+}
+
+/* Returns true if the specified type is a "unsigned integer" which is
+ NOT 128 bits integer */
+int
+aop_is_all_unsigned_subtype (const struct aop_type *type)
+{
+ return (type->kind == ATK_UNSIGNED_INT
+ && type->pointer_levels == 0 && type->size <= 8);
+}
+
+
/* Returns true if specified type is an "all fp" type. */
bool
is_all_fp_type (const struct aop_type *type)
extern const struct aop_type *aop_t_pointer_to (const struct aop_type *type);
extern int aop_is_pointer_type (const struct aop_type *type);
+extern int aop_is_all_signed_integer_type (const struct aop_type *type);
+extern int aop_is_all_unsigned_integer_type (const struct aop_type *type);
extern void aop_cast_to_all_pointer (struct aop_dynval *dv);
extern const struct aop_type *aop_get_dynval_type (struct aop_dynval *dv);