diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-09 20:13:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-09 20:13:21 +0000 |
commit | 82c78b2f7e6ddf297c9a8471fa77f770fb96efd5 (patch) | |
tree | 47a1497e7cf641041476dbbe0f7284aecaec9dcf | |
parent | 68b67ff3db2c89909b0a37078bf2cf4a80ef1d53 (diff) |
add a note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26661 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/README.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt index 3100b87005..d92f9c9906 100644 --- a/lib/Target/README.txt +++ b/lib/Target/README.txt @@ -117,3 +117,13 @@ it needs to turn the shifts into multiplies to get it. //===---------------------------------------------------------------------===// +These two functions should generate the same code on big-endian systems: + +int g(int *j,int *l) { return memcmp(j,l,4); } +int h(int *j, int *l) { return *j - *l; } + +this could be done in SelectionDAGISel.cpp, along with other special cases, +for 1,2,4,8 bytes. + +//===---------------------------------------------------------------------===// + |