diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-04 07:32:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-04 07:32:01 +0000 |
commit | 7db21bdb7d4b1d3ff202b5feb553f70b93cfeb38 (patch) | |
tree | b20994cc628fc22c8e2aeca247363441725e1fde /lib/Target/X86/README-SSE.txt | |
parent | a3b24f80d97a5cbb4de11d2c3ef4b06c5642eda0 (diff) | |
download | llvm-7db21bdb7d4b1d3ff202b5feb553f70b93cfeb38.tar.gz llvm-7db21bdb7d4b1d3ff202b5feb553f70b93cfeb38.tar.bz2 llvm-7db21bdb7d4b1d3ff202b5feb553f70b93cfeb38.tar.xz |
move the PR6214 microoptzn to this file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95299 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/README-SSE.txt')
-rw-r--r-- | lib/Target/X86/README-SSE.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/Target/X86/README-SSE.txt b/lib/Target/X86/README-SSE.txt index 0f3e44b528..a8f7f945b0 100644 --- a/lib/Target/X86/README-SSE.txt +++ b/lib/Target/X86/README-SSE.txt @@ -936,3 +936,21 @@ Also, the 'ret's should be shared. This is PR6032. //===---------------------------------------------------------------------===// +These should compile into the same code (PR6214): Perhaps instcombine should +canonicalize the former into the later? + +define float @foo(float %x) nounwind { + %t = bitcast float %x to i32 + %s = and i32 %t, 2147483647 + %d = bitcast i32 %s to float + ret float %d +} + +declare float @fabsf(float %n) +define float @bar(float %x) nounwind { + %d = call float @fabsf(float %x) + ret float %d +} + +//===---------------------------------------------------------------------===// + |