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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs