This is done.

llvm-svn: 130499
This commit is contained in:
Benjamin Kramer 2011-04-29 14:09:57 +00:00
parent a8fdf07d0a
commit 81d46d0c06

View File

@ -1727,26 +1727,6 @@ are functionally identical.
//===---------------------------------------------------------------------===//
Take the following C code:
int x(int y) { return (y & 63) << 14; }
Code produced by gcc:
andl $63, %edi
sall $14, %edi
movl %edi, %eax
ret
Code produced by clang:
shll $14, %edi
movl %edi, %eax
andl $1032192, %eax
ret
The code produced by gcc is 3 bytes shorter. This sort of construct often
shows up with bitfields.
//===---------------------------------------------------------------------===//
Take the following C code:
int f(int a, int b) { return (unsigned char)a == (unsigned char)b; }