[LLVMbugs] [Bug 13326] New: wrong code from %
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 10 19:41:51 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13326
Bug #: 13326
Summary: wrong code from %
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: chenyang at cs.utah.edu, llvmbugs at cs.uiuc.edu
Classification: Unclassified
regehr at home:~/z/reduce/r102$ clang -O1 small.c ; ./a.out
76
regehr at home:~/z/reduce/r102$ clang -O small.c ; ./a.out
254
regehr at home:~/z/reduce/r102$ cat small.c
int printf (const char *, ...);
int a = 232, b;
int
fn1 (unsigned char p1, unsigned char p2)
{
return p1 % p2;
}
int
main ()
{
b = fn1 (a, 78);
printf ("%d\n", b);
return 0;
}
regehr at home:~/z/reduce/r102$ clang -v
clang version 3.2 (trunk 160034)
Target: x86_64-unknown-linux-gnu
Thread model: posix
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list