[llvm-bugs] [Bug 28144] New: [IPRA][AArch64] Simple correctness test failing on AArch64

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 15 09:30:44 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28144

            Bug ID: 28144
           Summary: [IPRA][AArch64] Simple correctness test failing on
                    AArch64
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Register Allocator
          Assignee: unassignedbugs at nondot.org
          Reporter: mcrosier at codeaurora.org
                CC: llvm-bugs at lists.llvm.org, matze at braunis.de,
                    mehdi.amini at apple.com, qcolombet at apple.com
    Classification: Unclassified

Given the following test case:
------------------------------------------------------------------------
extern int printf(const char*, ...);
void foo(unsigned int i, int array[2]) __attribute__((noinline));

void foo(unsigned int i, int array[2]) {
  printf("%d %d %d\n", i, array[0], array[1]);
}

int main() {
  int array[2], i;

  array[0] = 0;
  array[1] = 1;
  foo(0, array);

  array[0] = 0;
  array[1] = 1;
  foo(1, array);

  return 0;
}
---------------------------------------------------------------------------------

Target aarch64 and compile with "-O3" should produce:
0 0 1
1 0 1

Target aarch64 and compile with "-O3 -mllvm -enable-ipra" should incorrectly
produce:
0 0 1
1 -56 -128

-- 
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/20160615/ef379d67/attachment.html>


More information about the llvm-bugs mailing list