[llvm-bugs] [Bug 31483] New: New GVN causes a failure in some lnt tests on PowerPC

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 27 15:09:07 PST 2016


            Bug ID: 31483
           Summary: New GVN causes a failure in some lnt tests on PowerPC
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: nemanja.i.ibm at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

The following has been reduced by creduce from

#include <stdarg.h>
test(char *fmt, va_list ap) {
  char *s;
  while (*fmt)
    switch (*fmt++) {
    case 's':
      s = va_arg(ap, char *);
      printf("string %s\n", s);
    case 'i':
    case 'c':
      va_arg(ap, int);

testVaListArg(*fmt, ...) {
  va_list ap;
  va_start(ap, fmt);
  test(fmt, ap);

main() {
  testVaListArg("ssiciiiiis", "", "def", 3, 'a', 3, 6, 7, 8, 9, "10 args

That is one of the test cases that fails with -mllvm -new-gvn.
The complete command line to build it is:

clang -I $LNT_BUILD_DIR/SingleSource/UnitTests -I
$LLVM_SRC/projects/test-suite/SingleSource/UnitTests -I
$LLVM_SRC/projects/test-suite/include -I../../include -D_GNU_SOURCE
-D__STDC_LIMIT_MACROS -DNDEBUG  -O3 -mllvm -enable-newgvn -ffp-contract=off
-ffp-contract=off -fomit-frame-pointer 2003-08-11-VaListArg.c

I understand that access to a PPC machine is sometimes tricky to get so if this
is somehow unique to PPC, I'm happy to assist with providing further

This is with revision 290604 of trunk.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161227/0ede417e/attachment.html>

More information about the llvm-bugs mailing list