Displaying 2 results from an estimated 2 matches for "c64b2680".
2011 Aug 19
0
[LLVMdev] Why int variable get promoted to i64
...t x[], int y[], int n) {
> int i = 0;
> int sum = 0;
> for ( ; i < n; i++) {
> sum += x[i] * y[i];
> }
> return sum;
> }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110819/c64b2680/attachment.html>
2011 Aug 19
3
[LLVMdev] Why int variable get promoted to i64
Hi, all
I found in some cases the int variable get promoted to i64,
although I think it should i32. I use the online demo
(http://llvm.org/demo). And below is the test case.
------------- test case -------------
int test(int x[], int y[], int n) {
int i = 0;
int sum = 0;
for ( ; i < n; i++) {
sum += x[i] * y[i];
}
return sum;
}
-------------------------------------
No