mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
fix some sort of weird pasto
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122560 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8a4893e013
commit
6dbb5dc5eb
@ -117,66 +117,6 @@ compiles into:
|
|||||||
Instead of doing an explicit test, we can use the flags off the sar. This
|
Instead of doing an explicit test, we can use the flags off the sar. This
|
||||||
occurs in a bigger testcase like this, which is pretty common:
|
occurs in a bigger testcase like this, which is pretty common:
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
|
|
||||||
int test1(std::vector<int> &X) {
|
|
||||||
int Sum = 0;
|
|
||||||
for (long i = 0, e = X.size(); i != e; ++i)
|
|
||||||
X[i] = 0;
|
|
||||||
return Sum;
|
|
||||||
}
|
|
||||||
compiles into:
|
|
||||||
|
|
||||||
movq %rsi, %rbx
|
|
||||||
movl %edi, %r14d
|
|
||||||
sarl $2, %r14d
|
|
||||||
testl %r14d, %r14d
|
|
||||||
je LBB0_2
|
|
||||||
|
|
||||||
Instead of doing an explicit test, we can use the flags off the sar. This
|
|
||||||
occurs in a bigger testcase like this, which is pretty common:
|
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
|
|
||||||
int test1(std::vector<int> &X) {
|
|
||||||
int Sum = 0;
|
|
||||||
for (long i = 0, e = X.size(); i != e; ++i)
|
|
||||||
X[i] = 0;
|
|
||||||
return Sum;
|
|
||||||
}
|
|
||||||
compiles into:
|
|
||||||
|
|
||||||
movq %rsi, %rbx
|
|
||||||
movl %edi, %r14d
|
|
||||||
sarl $2, %r14d
|
|
||||||
testl %r14d, %r14d
|
|
||||||
je LBB0_2
|
|
||||||
|
|
||||||
Instead of doing an explicit test, we can use the flags off the sar. This
|
|
||||||
occurs in a bigger testcase like this, which is pretty common:
|
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
|
|
||||||
int test1(std::vector<int> &X) {
|
|
||||||
int Sum = 0;
|
|
||||||
for (long i = 0, e = X.size(); i != e; ++i)
|
|
||||||
X[i] = 0;
|
|
||||||
return Sum;
|
|
||||||
}
|
|
||||||
compiles into:
|
|
||||||
|
|
||||||
movq %rsi, %rbx
|
|
||||||
movl %edi, %r14d
|
|
||||||
sarl $2, %r14d
|
|
||||||
testl %r14d, %r14d
|
|
||||||
je LBB0_2
|
|
||||||
|
|
||||||
Instead of doing an explicit test, we can use the flags off the sar. This
|
|
||||||
occurs in a bigger testcase like this, which is pretty common in bootstrap:
|
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
int test1(std::vector<int> &X) {
|
int test1(std::vector<int> &X) {
|
||||||
int Sum = 0;
|
int Sum = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user