QualType T = R->getType(Ctx);
// FIXME: handle structs.
- if (T->isIntegerType() || Loc::IsLocType(T)) {
+ if (Loc::IsLocType(T) || (T->isIntegerType() && T->isScalarType())) {
SymbolID NewSym =
Eng.getSymbolManager().getConjuredSymbol(*I, T, Count);
QualType T = Ex->getType();
- if (T->isIntegerType() || Loc::IsLocType(T)) {
+ if (Loc::IsLocType(T) || (T->isIntegerType() && T->isScalarType())) {
unsigned Count = Builder.getCurrentBlockCount();
SymbolID Sym = Eng.getSymbolManager().getConjuredSymbol(Ex, Count);
SymbolID Sym = SymMgr.getConjuredSymbol(InitEx, Count);
InitVal = loc::SymbolVal(Sym);
}
- else if (T->isIntegerType()) {
+ else if (T->isIntegerType() && T->isScalarType()) {
SymbolID Sym = SymMgr.getConjuredSymbol(InitEx, Count);
InitVal = nonloc::SymbolVal(Sym);
}
return;
}
+ if (T->isUnionType() || T->isVectorType()) {
+ // FIXME: to be implemented.
+ // Note: That vectors can return true for T->isIntegerType()
+ MakeNode(Dst, E, Pred, state);
+ return;
+ }
+
if (Loc::IsLocType(T) || T->isIntegerType()) {
assert (E->getNumInits() == 1);
NodeSet Tmp;
return;
}
- if (T->isUnionType() || T->isVectorType()) {
- // FIXME: to be implemented.
- MakeNode(Dst, E, Pred, state);
- return;
- }
printf("InitListExpr type = %s\n", T.getAsString().c_str());
assert(0 && "unprocessed InitListExpr type");
// FIXME: Handle structs.
QualType T = RHS->getType();
- if (RightV.isUnknown() && (T->isIntegerType() || Loc::IsLocType(T))) {
+ if (RightV.isUnknown() && (Loc::IsLocType(T) ||
+ (T->isScalarType() && T->isIntegerType()))) {
unsigned Count = Builder->getCurrentBlockCount();
SymbolID Sym = SymMgr.getConjuredSymbol(B->getRHS(), Count);
- RightV = Loc::IsLocType(B->getRHS()->getType())
+ RightV = Loc::IsLocType(T)
? cast<SVal>(loc::SymbolVal(Sym))
: cast<SVal>(nonloc::SymbolVal(Sym));
}
case BinaryOperator::Rem:
// Special checking for integer denominators.
- if (RHS->getType()->isIntegerType()) {
+ if (RHS->getType()->isIntegerType() &&
+ RHS->getType()->isScalarType()) {
+
St = CheckDivideZero(B, St, *I2, RightV);
if (!St) continue;
}
// Check for divide-by-zero.
if ((Op == BinaryOperator::Div || Op == BinaryOperator::Rem)
- && RHS->getType()->isIntegerType()) {
+ && RHS->getType()->isIntegerType()
+ && RHS->getType()->isScalarType()) {
// CheckDivideZero returns a new state where the denominator
// is assumed to be non-zero.
// EXPERIMENTAL: "Conjured" symbols.
// FIXME: Handle structs.
- if (Result.isUnknown() &&
- (CTy->isIntegerType() || Loc::IsLocType(CTy))) {
+ if (Result.isUnknown() && (Loc::IsLocType(CTy) ||
+ (CTy->isScalarType() && CTy->isIntegerType()))) {
unsigned Count = Builder->getCurrentBlockCount();
SymbolID Sym = SymMgr.getConjuredSymbol(B->getRHS(), Count);
typedef float __m128 __attribute__((__vector_size__(16), __may_alias__));
__m128 return128() {
+ // This compound literal has a Vector type. We currently just
+ // return UnknownVal.
return __extension__(__m128) { 0.0f, 0.0f, 0.0f, 0.0f };
}
+typedef long long __v2di __attribute__ ((__vector_size__ (16)));
+typedef long long __m128i __attribute__ ((__vector_size__ (16), __may_alias__));
+__m128i vec128i(long long __q1, long long __q0) {
+ // This compound literal returns true for both isVectorType() and
+ // isIntegerType().
+ return __extension__ (__m128i)(__v2di){ __q0, __q1 };
+}
+
+