From 01f37870b5153cec867233fde4e7b9f4cf9a3a59 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 7 Sep 2010 19:57:06 +0000 Subject: rename test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113257 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/2010-07-19-sqrt.ll | 16 ---------------- test/Transforms/InstCombine/sqrt.ll | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 test/Transforms/InstCombine/2010-07-19-sqrt.ll create mode 100644 test/Transforms/InstCombine/sqrt.ll (limited to 'test') diff --git a/test/Transforms/InstCombine/2010-07-19-sqrt.ll b/test/Transforms/InstCombine/2010-07-19-sqrt.ll deleted file mode 100644 index 6505382048..0000000000 --- a/test/Transforms/InstCombine/2010-07-19-sqrt.ll +++ /dev/null @@ -1,16 +0,0 @@ -; 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 ; [#uses=1] - %call = tail call double @sqrt(double %conv) nounwind ; [#uses=1] - %conv1 = fptrunc double %call to float ; [#uses=1] -; CHECK: ret float - ret float %conv1 -} - -declare double @sqrt(double) readnone diff --git a/test/Transforms/InstCombine/sqrt.ll b/test/Transforms/InstCombine/sqrt.ll new file mode 100644 index 0000000000..6505382048 --- /dev/null +++ b/test/Transforms/InstCombine/sqrt.ll @@ -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 ; [#uses=1] + %call = tail call double @sqrt(double %conv) nounwind ; [#uses=1] + %conv1 = fptrunc double %call to float ; [#uses=1] +; CHECK: ret float + ret float %conv1 +} + +declare double @sqrt(double) readnone -- cgit v1.2.3