X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Firr_cf_example.c;h=c3ad7a866d5fccf5739ad51e78fdc54ea2db409d;hb=67067849894a6b5e0f87253ede8539331e3bdc3d;hp=96e27ab25c2733ea1735941178b619dc23dd2310;hpb=9fbc46dc213871984b377a2b622a7ca8817fb0ad;p=libfirm diff --git a/testprograms/irr_cf_example.c b/testprograms/irr_cf_example.c index 96e27ab25..c3ad7a866 100644 --- a/testprograms/irr_cf_example.c +++ b/testprograms/irr_cf_example.c @@ -82,9 +82,9 @@ int main(int argc, char **argv) irg = new_ir_graph (ent, NUM_OF_LOCAL_VARS); /* two make two conditionals that represent a switch */ - expr = new_Const (mode_Is, tarval_from_long (mode_Is, 0)); - c1 = new_Const (mode_Is, tarval_from_long (mode_Is, 1)); - c2 = new_Const (mode_Is, tarval_from_long (mode_Is, 2)); + expr = new_Const (mode_Is, new_tarval_from_long (0, mode_Is)); + c1 = new_Const (mode_Is, new_tarval_from_long (1, mode_Is)); + c2 = new_Const (mode_Is, new_tarval_from_long (2, mode_Is)); cond = new_Cond(new_Proj(new_Cmp(expr, c1), mode_b, Eq)); f = new_Proj(cond, mode_X, 0);