X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Ftest%2Fconvtest.c;h=43b489e970d4600d22615dafac51394647b625b8;hb=1872920c09708b361d06c0dc9f4c1fd0a03544f5;hp=26f5bcab4801fa89d2b0cccfb70562acdffa7589;hpb=32ff51734a0619a9354cdd0680e7cc5bf497322b;p=libfirm diff --git a/ir/be/test/convtest.c b/ir/be/test/convtest.c index 26f5bcab4..43b489e97 100644 --- a/ir/be/test/convtest.c +++ b/ir/be/test/convtest.c @@ -7,27 +7,20 @@ int bla(char a, char b, char c, char d, short e, short f, short g, int h, int i, int convtest_func(char c, short s, int i, float f, double d) { char sc = c + s; char ic = c + i; - //char fc = c + f; - //char dc = c + d; - char fc = c; - char dc = c; - //short is = s + i; - //short fs = s + f; - //short ds = s + d; - short is = s; + char fc = c + f; + char dc = c + d; + short is = s + i; short fs = s + f; - short ds = s; - //int fi = i + f; - //int di = i + d; + short ds = s + d; + //int ti = i + s; int fi = i + f; - int di = i; - //float df = d + f; - double df = d; + int di = i + d; + float df = d + f; return bla(sc, ic, fc, dc, is, fs, ds, fi, di, df); } int main() { - printf("%d\n", convtest_func('a', 42, 2444, 7.153f, 8.222)); + printf("%d (expected 7576)\n", convtest_func('a', 42, 2444, 7.753f, 8.222)); return 0; }