https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78960
Bug ID: 78960 Summary: FAIL: gcc.dg/tree-ssa/builtin-sprintf.c execution test Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Target Milestone: --- Host: hppa64-hp-hpux11.11 Target: hppa64-hp-hpux11.11 Build: hppa64-hp-hpux11.11 Executing on host: /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/ /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c -fno-diagnostics-show-caret -fdiagnostics-color=never -ansi -pedantic-errors -O2 -Wall -Wno-pedantic -fprintf-return-value -lm -o ./builtin-sprintf.exe (timeout = 300) spawn /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/ /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c -fno-diagnostics-show-caret -fdiagnostics-color=never -ansi -pedantic-errors -O2 -Wall -Wno-pedantic -fprintf-return-value -lm -o ./builtin-sprintf.exe /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c: In function 'test_d_i': /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:304:20: warning: '0' flag ignored with precision and '%i' gnu_printf format [-Wformat=] /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:125:44: note: in definition of macro 'RNG' output is: /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c: In function 'test_d_i': /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:304:20: warning: '0' flag ignored with precision and '%i' gnu_printf format [-Wformat=] /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:125:44: note: in definition of macro 'RNG' PASS: gcc.dg/tree-ssa/builtin-sprintf.c (test for warnings, line 304) PASS: gcc.dg/tree-ssa/builtin-sprintf.c (test for excess errors) Setting LD_LIBRARY_PATH to :/test/gnu/gcc/objdir/gcc:/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libatomic/.libs::/test/gnu/gcc/objdir/gcc:/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libatomic/.libs spawn [open ...] PASS: test_c:137: "%c" result 1: "?" PASS: test_c:138: "%c" result 1: "?" PASS: test_c:139: "%1c" result 1: "?" PASS: test_c:140: "%1c" result 1: "?" PASS: test_c:141: "%*c" result 1: "?" PASS: test_c:142: "%*c" result 1: "?" PASS: test_c:143: "%c%c" result 2: "12" PASS: test_c:144: "%c%c" result 2: "12" PASS: test_c:145: "%3c" result 3: " ?" PASS: test_c:146: "%3c" result 3: " ?" PASS: test_c:147: "%*c" result 3: " ?" PASS: test_c:148: "%*c" result 3: " ?" PASS: test_c:150: "%*c%*c" result 3: " ??" PASS: test_c:151: "%*c%*c" result 3: "? ?" PASS: test_c:152: "%c%c%c" result 3: "123" PASS: test_c:153: "%*c%c%c" result 3: "123" PASS: test_c:154: "%*c%*c%c" result 3: "123" PASS: test_c:155: "%*c%*c%*c" result 3: "123" PASS: test_c:157: "%*c%*c" result 3: " ??" PASS: test_c:158: "%*c%*c" result 3: "? ?" PASS: test_c:159: "%c%c%c" result 3: "123" PASS: test_c:160: "%*c%c%c" result 3: "123" PASS: test_c:161: "%*c%*c%c" result 3: "123" PASS: test_c:162: "%*c%*c%*c" result 3: "123" PASS: test_c:164: "%c%c %c" result 4: "12 3" PASS: test_c:165: "%c %c %c" result 5: "1 2 3" PASS: test_c:166: "%c %c %c" result 5: "? ? ?" PASS: test_d_i:220: "%d" result 1: "0" PASS: test_d_i:221: "%d%d" result 2: "01" PASS: test_d_i:222: "%d%d" result 3: "910" PASS: test_d_i:223: "%d%d" result 4: "1112" PASS: test_d_i:224: "%d:%d" result 5: "12:34" PASS: test_d_i:225: "%d" result 5: "12345" PASS: test_d_i:226: "%d" result 6: "-12345" PASS: test_d_i:227: "%d:%d:%d:%d" result 15: "123:124:125:126" PASS: test_d_i:229: "%i" result 1: "0" PASS: test_d_i:230: "%i" result 1: "0" PASS: test_d_i:248: "%11d" result 11: " -559038737" PASS: test_d_i:249: "%+11d" result 11: " -559038737" PASS: test_d_i:250: "%-11d" result 11: "-559038737 " PASS: test_d_i:251: "%011d" result 11: "-0559038737" PASS: test_d_i:270: "%20ld" result 20: " 3735928559" PASS: test_d_i:271: "%+20ld" result 20: " +3735928559" PASS: test_d_i:272: "%-20ld" result 20: "3735928559 " PASS: test_d_i:273: "%020ld" result 20: "00000000003735928559" FAIL: test_d_i:287: "%hhi" expected result for "-16657" doesn't match function call return value: 6 not in [1, 4] FAIL: test_d_i:288: "%hhu" expected result for "48879" doesn't match function call return value: 5 not in [1, 3] PASS: test_d_i:290: "%hhi" result 4: "-128" PASS: test_d_i:291: "%hhi" result 4: "-128" PASS: test_d_i:292: "%hhi" result 4: "-128" PASS: test_d_i:294: "%1hhi" result 4: "-128" PASS: test_d_i:295: "%2hhi" result 4: "-128" PASS: test_d_i:296: "%3hhi" result 4: "-128" PASS: test_d_i:297: "%4hhi" result 4: "-128" PASS: test_d_i:298: "%5hhi" result 5: " -128" PASS: test_d_i:299: "%6hhi" result 6: " -128" PASS: test_d_i:300: "%6hhi" result 6: " -128" PASS: test_d_i:302: "%.hhi" result 0: "" PASS: test_d_i:303: "%.0hhi" result 0: "" PASS: test_d_i:304: "%0.0hhi" result 0: "" PASS: test_d_i:305: "%*.0hhi" result 0: "" FAIL: test_d_i:307: "%hhi" expected result for "1024" doesn't match output length: 4 not in [1, 2] PASS: test_d_i:308: "%hhi" result 4: "1024" FAIL: test_d_i:309: "%hhi" expected result for "1034" doesn't match output length: 4 not in [2, 3] FAIL: test_d_i:311: "%hhu" expected result for "1024" doesn't match output length: 4 not in [1, 2] FAIL: test_d_i:312: "%hhu" expected result for "1024" doesn't match output length: 4 not in [1, 3] FAIL: test_d_i:313: "%hhu" expected result for "1034" doesn't match output length: 4 not in [2, 3] PASS: test_d_i:316: "%hi" result 6: "-16657" PASS: test_d_i:317: "%hu" result 5: "48879" PASS: test_d_i:328: "%i" result 10: "-559038737" PASS: test_d_i:329: "%u" result 10: "3735928559" PASS: test_d_i:339: "%li" result 10: "3735928559" PASS: test_d_i:340: "%lu" result 10: "3735928559" PASS: test_x:347: "%hhx" result 1: "0" PASS: test_x:348: "%2hhx" result 2: " 0" PASS: test_x:349: "%02hhx" result 2: "00" PASS: test_x:350: "%#02hhx" result 2: "00" PASS: test_x:352: "%hhx" result 1: "1" PASS: test_x:353: "%2hhx" result 2: " 1" PASS: test_x:354: "%02hhx" result 2: "01" PASS: test_x:355: "%#02hhx" result 3: "0x1" PASS: test_x:357: "%2hhx" result 2: "3f" PASS: test_x:358: "%02hhx" result 2: "3f" PASS: test_x:359: "%#05hhx" result 5: "0x03f" FAIL: test_x:361: "%2hhx" expected result for "dead" doesn't match function call return value: 4 != 2 FAIL: test_x:362: "%02hhx" expected result for "dead" doesn't match function call return value: 4 != 2 FAIL: test_x:363: "%#05hhx" expected result for "0xdead" doesn't match function call return value: 6 != 5 FAIL: test_x:365: "%2hhx" expected result for "beef" doesn't match function call return value: 4 != 2 FAIL: test_x:366: "%02hhx" expected result for "beef" doesn't match function call return value: 4 != 2 FAIL: test_x:367: "%#05hhx" expected result for "0xbeef" doesn't match function call return value: 6 != 5 PASS: test_x:369: "%x" result 1: "0" PASS: test_x:370: "%#x" result 1: "0" PASS: test_x:371: "%#0x" result 1: "0" PASS: test_x:372: "%x" result 1: "1" PASS: test_x:373: "%x" result 1: "f" PASS: test_x:374: "%x" result 2: "10" PASS: test_x:375: "%x" result 2: "ff" PASS: test_x:376: "%x" result 3: "100" PASS: test_x:378: "%02x:%02x:%02x:%02x" result 11: "de:ad:be:ef" PASS: test_x:387: "%02hhx:%02hhx:%02hhx:%02hhx" result 11: "3f:3f:3f:3f" PASS: test_x:390: "%04hx" result 4: "dead" PASS: test_x:391: "%04hx:%04hx" result 9: "dead:dead" PASS: test_x:392: "%04hx:%04hx:%04hx" result 14: "dead:dead:dead" PASS: test_x:393: "%04hx:%04hx:%04hx:%04hx" result 19: "dead:dead:dead:dead" PASS: test_x:400: "%08x" result 8: "deadbeef" PASS: test_x:401: "%#010x" result 10: "0xdeadbeef" FAIL: test_a_double:411: "%.0a" expected result for "a" doesn't match function call return value: 1 != 6 FAIL: test_a_double:412: "%.0a" expected result for "a" doesn't match function call return value: 1 != 6 FAIL: test_a_double:413: "%.0a" expected result for "a" doesn't match function call return value: 1 != 6 FAIL: test_a_double:414: "%.1a" expected result for "a" doesn't match function call return value: 1 != 8 FAIL: test_a_double:415: "%.2a" expected result for "a" doesn't match function call return value: 1 != 9 FAIL: test_a_double:416: "%.3a" expected result for "a" doesn't match function call return value: 1 != 10 FAIL: test_a_double:419: "%.0a" expected result for "a" doesn't match output length: 1 not in [6, 10] FAIL: test_a_double:420: "%.1a" expected result for "a" doesn't match output length: 1 not in [6, 12] FAIL: test_a_double:421: "%.2a" expected result for "a" doesn't match output length: 1 not in [6, 13] PASS: test_e_double:437: "%e" result 12: "1.000000e+00" PASS: test_e_double:438: "%e" result 13: "-1.000000e+00" PASS: test_e_double:439: "%e" result 12: "1.000000e+01" PASS: test_e_double:440: "%e" result 13: "-1.000000e+01" PASS: test_e_double:441: "%e" result 12: "1.000000e+12" PASS: test_e_double:442: "%e" result 13: "-1.000000e+12" PASS: test_e_double:443: "%e" result 13: "1.000000e+123" PASS: test_e_double:444: "%e" result 14: "-1.000000e+123" PASS: test_e_double:446: "%e" result 12: "9.999000e+99" PASS: test_e_double:447: "%e" result 12: "9.999900e+99" PASS: test_e_double:448: "%e" result 12: "9.999990e+99" PASS: test_e_double:454: "%e" result 12: "1.000000e-01" PASS: test_e_double:455: "%e" result 12: "1.000000e-12" PASS: test_e_double:456: "%e" result 13: "1.000000e-123" PASS: test_f_double:498: "%f" result 8: "0.000000" PASS: test_f_double:499: "%f" result 8: "0.100000" PASS: test_f_double:500: "%f" result 8: "0.120000" PASS: test_f_double:501: "%f" result 8: "0.123000" PASS: test_f_double:502: "%f" result 8: "0.123400" PASS: test_f_double:503: "%f" result 8: "0.123450" PASS: test_f_double:504: "%f" result 8: "0.123456" PASS: test_f_double:505: "%f" result 8: "1.234567" PASS: test_f_double:507: "%f" result 9: "10.000000" PASS: test_f_double:508: "%f" result 20: "1000000000000.000000" PASS: test_f_double:509: "%f" result 130: "999999999999999980000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000" PASS: test_f_double:511: "%f" result 8: "0.100000" PASS: test_f_double:512: "%f" result 8: "0.000000" PASS: test_f_double:513: "%f" result 8: "0.000000" FAIL: test_a_long_double:427: "%.0La" expected result for "a" doesn't match function call return value: 1 != 6 FAIL: test_a_long_double:428: "%.0La" expected result for "a" doesn't match function call return value: 1 != 6 FAIL: test_a_long_double:429: "%.0La" expected result for "a" doesn't match function call return value: 1 != 6 FAIL: test_a_long_double:430: "%.1La" expected result for "a" doesn't match function call return value: 1 != 8 FAIL: test_a_long_double:431: "%.2La" expected result for "a" doesn't match function call return value: 1 != 9 PASS: test_e_long_double:462: "%Le" result 12: "1.000000e+00" PASS: test_e_long_double:463: "%Le" result 13: "-1.000000e+00" PASS: test_e_long_double:464: "%Le" result 12: "1.000000e+01" PASS: test_e_long_double:465: "%Le" result 13: "-1.000000e+01" PASS: test_e_long_double:466: "%Le" result 12: "1.000000e+12" PASS: test_e_long_double:467: "%Le" result 13: "-1.000000e+12" PASS: test_e_long_double:468: "%Le" result 13: "1.000000e+123" PASS: test_e_long_double:469: "%Le" result 14: "-1.000000e+123" PASS: test_e_long_double:471: "%Le" result 12: "9.999000e+99" PASS: test_e_long_double:472: "%Le" result 12: "9.999900e+99" PASS: test_e_long_double:473: "%Le" result 12: "9.999990e+99" PASS: test_e_long_double:476: "%Le" result 12: "9.999999e+99" PASS: test_e_long_double:485: "%Le" result 12: "1.000000e-01" PASS: test_e_long_double:486: "%Le" result 12: "1.000000e-12" PASS: test_e_long_double:487: "%Le" result 13: "1.000000e-123" PASS: test_e_long_double:489: "%.0Le" result 6: "1e-111" PASS: test_e_long_double:490: "%.1Le" result 8: "1.0e-111" PASS: test_e_long_double:491: "%.12Le" result 19: "1.000000000000e-112" PASS: test_e_long_double:492: "%.13Le" result 20: "1.0000000000000e-113" PASS: test_f_long_double:519: "%Lf" result 8: "0.000000" PASS: test_f_long_double:520: "%Lf" result 8: "0.100000" PASS: test_f_long_double:521: "%Lf" result 8: "0.120000" PASS: test_f_long_double:522: "%Lf" result 8: "0.123000" PASS: test_f_long_double:523: "%Lf" result 8: "0.123400" PASS: test_f_long_double:524: "%Lf" result 8: "0.123450" PASS: test_f_long_double:525: "%Lf" result 8: "0.123456" PASS: test_f_long_double:526: "%Lf" result 8: "1.234567" PASS: test_f_long_double:528: "%Lf" result 9: "10.000000" PASS: test_f_long_double:529: "%Lf" result 20: "1000000000000.000000" FAIL: test_f_long_double:530: "%Lf" expected result for "1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000" doesn't match function call return value: 131 != 130 PASS: test_f_long_double:532: "%Lf" result 8: "0.100000" PASS: test_f_long_double:533: "%Lf" result 8: "0.000000" PASS: test_f_long_double:534: "%Lf" result 8: "0.000000" PASS: test_s:540: "%s" result 0: "" PASS: test_s:541: "%s" result 0: "" PASS: test_s:542: "%1s" result 1: " " PASS: test_s:543: "%s" result 1: "1" PASS: test_s:544: "%2s" result 2: " " PASS: test_s:545: "%s" result 2: "12" PASS: test_s:546: "%s%s" result 2: "12" PASS: test_s:547: "%s%s" result 2: "12" PASS: test_s:548: "%s%s" result 2: "12" PASS: test_s:549: "%3s" result 3: " " PASS: test_s:550: "%3s" result 3: " 1" PASS: test_s:551: "%3s" result 3: " 12" PASS: test_s:552: "%3s" result 3: "123" PASS: test_s:553: "%3.3s" result 3: " 1" PASS: test_s:554: "%3.3s" result 3: " 12" PASS: test_s:555: "%3.3s" result 3: "123" PASS: test_s:556: "%3.3s" result 3: "123" PASS: test_s:557: "%3.3s" result 3: "123" PASS: test_s:558: "%s %s" result 3: "1 2" PASS: test_s:559: "%s %s" result 4: "12 3" PASS: test_s:560: "%s %s" result 5: "12 34" PASS: test_s:561: "[%s %s]" result 5: "[1 2]" PASS: test_s:562: "[%s %s]" result 6: "[12 3]" PASS: test_s:563: "[%s %s]" result 7: "[12 34]" PASS: test_s:567: "%-s" result 3: "123" PASS: test_s:568: "%-s" result 4: "1234" PASS: test_s:569: "%-s" result 5: "12345" PASS: test_s:570: "%-s" result 6: "123456" 28 out of 209 tests failed FAIL: gcc.dg/tree-ssa/builtin-sprintf.c execution test