summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/scalar-min-max-fill-operand.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-09-21 18:03:22 +0000
committerDan Gohman <gohman@apple.com>2009-09-21 18:03:22 +0000
commit48ade83e60a63465c5bc197933d8ef514ba1719f (patch)
treefadf1b7fe928beb7c08285e1358c6f9c1dba437a /llvm/test/CodeGen/X86/scalar-min-max-fill-operand.ll
parent757acfea6317592097c6a95e39a536957b886222 (diff)
downloadbcm5719-llvm-48ade83e60a63465c5bc197933d8ef514ba1719f.tar.gz
bcm5719-llvm-48ade83e60a63465c5bc197933d8ef514ba1719f.zip
Recognize SSE min and max opportunities in even more cases.
And fix a bug with the behavior of min/max instructions formed from fcmp uge comparisons. Also, use FiniteOnlyFPMath() for this code instead of UnsafeFPMath, as it is more specific. llvm-svn: 82466
Diffstat (limited to 'llvm/test/CodeGen/X86/scalar-min-max-fill-operand.ll')
-rw-r--r--llvm/test/CodeGen/X86/scalar-min-max-fill-operand.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/X86/scalar-min-max-fill-operand.ll b/llvm/test/CodeGen/X86/scalar-min-max-fill-operand.ll
index bda50ccd58e..fe40758d8ec 100644
--- a/llvm/test/CodeGen/X86/scalar-min-max-fill-operand.ll
+++ b/llvm/test/CodeGen/X86/scalar-min-max-fill-operand.ll
@@ -4,17 +4,17 @@
declare float @bar()
-define float @foo(float %a)
+define float @foo(float %a) nounwind
{
%s = call float @bar()
%t = fcmp olt float %s, %a
%u = select i1 %t, float %s, float %a
ret float %u
}
-define float @hem(float %a)
+define float @hem(float %a) nounwind
{
%s = call float @bar()
- %t = fcmp uge float %s, %a
+ %t = fcmp ogt float %s, %a
%u = select i1 %t, float %s, float %a
ret float %u
}
OpenPOWER on IntegriCloud