aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-11-25 19:00:29 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-11-25 19:00:29 +0000
commite08e2b33bfcd81b3c4f01ad51aa6b39e00715928 (patch)
treedbd39813ba5553bff2dcc2e800a61744e1ab1081 /test
parenta710d727b7aec6c0d84bf13813f38d65e8de927e (diff)
downloadexternal_llvm-e08e2b33bfcd81b3c4f01ad51aa6b39e00715928.zip
external_llvm-e08e2b33bfcd81b3c4f01ad51aa6b39e00715928.tar.gz
external_llvm-e08e2b33bfcd81b3c4f01ad51aa6b39e00715928.tar.bz2
convertToSignExtendedInteger should return opInvalidOp instead of asserting if sematics of float does not allow arithmetics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60042 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/IndVarsSimplify/2008-11-25-APFloatAssert.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/IndVarsSimplify/2008-11-25-APFloatAssert.ll b/test/Transforms/IndVarsSimplify/2008-11-25-APFloatAssert.ll
new file mode 100644
index 0000000..9fd0eb9
--- /dev/null
+++ b/test/Transforms/IndVarsSimplify/2008-11-25-APFloatAssert.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | opt -indvars
+
+define void @t() nounwind {
+entry:
+ br label %bb23.i91
+
+bb23.i91: ; preds = %bb23.i91, %entry
+ %result.0.i89 = phi ppc_fp128 [ 0xM00000000000000000000000000000000, %entry ], [ %0, %bb23.i91 ] ; <ppc_fp128> [#uses=2]
+ %0 = mul ppc_fp128 %result.0.i89, %result.0.i89 ; <ppc_fp128> [#uses=1]
+ br label %bb23.i91
+}