summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-05-13 06:26:11 +0000
committerChris Lattner <sabre@nondot.org>2009-05-13 06:26:11 +0000
commitbcc2e7dc2c4d10e5b5ecab2e1201653508a3b1ef (patch)
tree763bb4f1ff1a7324c9d76e623bf1e62e6ab779d9 /test
parent60dc7345eb1543546064a35c7c2c4ea08b40f9c0 (diff)
downloadllvm-bcc2e7dc2c4d10e5b5ecab2e1201653508a3b1ef.tar.gz
llvm-bcc2e7dc2c4d10e5b5ecab2e1201653508a3b1ef.tar.bz2
llvm-bcc2e7dc2c4d10e5b5ecab2e1201653508a3b1ef.tar.xz
Fix PR4206 - crash in simplify lib calls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/SimplifyLibCalls/FFS.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyLibCalls/FFS.ll b/test/Transforms/SimplifyLibCalls/FFS.ll
index bdf43ef69f..d6a504af86 100644
--- a/test/Transforms/SimplifyLibCalls/FFS.ll
+++ b/test/Transforms/SimplifyLibCalls/FFS.ll
@@ -28,3 +28,9 @@ define i32 @main() {
ret i32 %rslt5
}
+
+; PR4206
+define i32 @a(i64) nounwind {
+ %2 = call i32 @ffsll(i64 %0) ; <i32> [#uses=1]
+ ret i32 %2
+}