[llvm-bugs] [Bug 27246] New: r261346 causes this test case to fail
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Apr 6 09:45:30 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=27246
Bug ID: 27246
Summary: r261346 causes this test case to fail
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Loop Optimizer
Assignee: unassignedbugs at nondot.org
Reporter: kevin.b.smith at intel.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Starting with r261346 the following test case will fail when compiled
with clang/llvm for intel64 linux.
cat >t1.cpp <<EOF
#include <stdio.h>
int main ()
{
unsigned int i = 4;
unsigned int k = 17;
unsigned int n = 60;
unsigned int e = 0;
for (i = 1; i < 49; i++)
{
for (k = i; k > 1; --k) {
e = k;
}
n = e;
}
if (n == 2)
printf("Passed\n");
else
printf("Failed\n");
return 0;
}
EOF
Compile using
clang -c -O2 t1.cpp
clang -o t1.exe t1.c
--
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/20160406/b93b47ab/attachment.html>
More information about the llvm-bugs
mailing list