mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
Testcase for r108687.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108689 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
54026c0f1b
commit
aa52fd10ab
16
test/Transforms/InstCombine/2010-07-19-sqrt.ll
Normal file
16
test/Transforms/InstCombine/2010-07-19-sqrt.ll
Normal file
@ -0,0 +1,16 @@
|
||||
; RUN: opt -S -instcombine %s | FileCheck %s
|
||||
|
||||
define float @foo(float %x) nounwind readnone ssp {
|
||||
entry:
|
||||
; CHECK-NOT: fpext
|
||||
; CHECK-NOT: sqrt(
|
||||
; CHECK: sqrtf(
|
||||
; CHECK-NOT: fptrunc
|
||||
%conv = fpext float %x to double ; <double> [#uses=1]
|
||||
%call = tail call double @sqrt(double %conv) nounwind ; <double> [#uses=1]
|
||||
%conv1 = fptrunc double %call to float ; <float> [#uses=1]
|
||||
; CHECK: ret float
|
||||
ret float %conv1
|
||||
}
|
||||
|
||||
declare double @sqrt(double) readnone
|
Loading…
Reference in New Issue
Block a user