[LLVMbugs] [Bug 3150] New: clang integer codegen bug
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Dec 1 09:45:49 PST 2008
http://llvm.org/bugs/show_bug.cgi?id=3150
Summary: clang integer codegen bug
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
Using clang r60351 on Ubuntu Hardy on x86, the program below prints 0, whereas
it should print 1.
#include <stdio.h>
static int safe_mul_int_s_s (int si1, int si2)
{
return si1 * si2;
}
volatile int g_44;
void func_38 (void);
void func_38 (void)
{
g_44 = 1;
return 1;
}
void func_18 (void);
void func_18 (void)
{
if (safe_mul_int_s_s (1, 1 || 1))
{
func_38 ();
}
}
int main (void)
{
func_18 ();
printf ("%d\n", g_44);
return 0;
}
--
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