move the PR6214 microoptzn to this file.

llvm-svn: 95299
This commit is contained in:
Chris Lattner 2010-02-04 07:32:01 +00:00
parent a0032da389
commit fb5670fc16
1 changed files with 18 additions and 0 deletions

View File

@ -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
}
//===---------------------------------------------------------------------===//