diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-12-06 22:49:05 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-12-06 22:49:05 +0000 |
| commit | 527dd604302e13f96132e9f045745d6eec8c8d37 (patch) | |
| tree | 3e3134ee29cf708b4cb692f9c059cdddf29bbb57 /llvm | |
| parent | 3bb1ffca94b06c4751d2c448124af13189fdcbf9 (diff) | |
| download | bcm5719-llvm-527dd604302e13f96132e9f045745d6eec8c8d37.tar.gz bcm5719-llvm-527dd604302e13f96132e9f045745d6eec8c8d37.zip | |
add a note
llvm-svn: 60632
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/X86/README.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/README.txt b/llvm/lib/Target/X86/README.txt index c02eca6410f..eb110fe60f6 100644 --- a/llvm/lib/Target/X86/README.txt +++ b/llvm/lib/Target/X86/README.txt @@ -1816,3 +1816,18 @@ like the following: A similar code sequence works for division. //===---------------------------------------------------------------------===// + +These should compile to the same code, but the later codegen's to useless +instructions on X86. This may be a trivial dag combine (GCC PR7061): + +struct s1 { unsigned char a, b; }; +unsigned long f1(struct s1 x) { + return x.a + x.b; +} +struct s2 { unsigned a: 8, b: 8; }; +unsigned long f2(struct s2 x) { + return x.a + x.b; +} + +//===---------------------------------------------------------------------===// + |

