summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-03-03 16:31:17 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-03-03 16:31:17 +0000
commitad403a483a3463efbbbf0cf0119b478a1c2190f5 (patch)
tree7cad874480e4f75c089b4ed97c6ec53647d34025
parent9f2a4e212c14e253f52931054acd44c7d37e7d79 (diff)
downloadbcm5719-llvm-ad403a483a3463efbbbf0cf0119b478a1c2190f5.tar.gz
bcm5719-llvm-ad403a483a3463efbbbf0cf0119b478a1c2190f5.zip
[X86] This bit-test TODO has been moved in PR36551
llvm-svn: 326658
-rw-r--r--llvm/lib/Target/X86/README.txt24
1 files changed, 0 insertions, 24 deletions
diff --git a/llvm/lib/Target/X86/README.txt b/llvm/lib/Target/X86/README.txt
index 11652af9f1f..c06a7b1ade6 100644
--- a/llvm/lib/Target/X86/README.txt
+++ b/llvm/lib/Target/X86/README.txt
@@ -1436,30 +1436,6 @@ bar:
//===---------------------------------------------------------------------===//
-Consider the following two functions compiled with clang:
-_Bool foo(int *x) { return !(*x & 4); }
-unsigned bar(int *x) { return !(*x & 4); }
-
-foo:
- movl 4(%esp), %eax
- testb $4, (%eax)
- sete %al
- movzbl %al, %eax
- ret
-
-bar:
- movl 4(%esp), %eax
- movl (%eax), %eax
- shrl $2, %eax
- andl $1, %eax
- xorl $1, %eax
- ret
-
-The second function generates more code even though the two functions are
-are functionally identical.
-
-//===---------------------------------------------------------------------===//
-
Take the following C code:
int f(int a, int b) { return (unsigned char)a == (unsigned char)b; }
OpenPOWER on IntegriCloud