summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/Transforms
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-05-03 17:09:38 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-05-03 17:09:38 +0000
commitf436286cf66e81f79a24f49ed89af867c43e898b (patch)
treeb075187aaddafd9b81d7f2b0f22cb45e0e7dd3b4 /llvm/test/Regression/Transforms
parenta6bbd18023a5f399729c352d68491d48096503d0 (diff)
downloadbcm5719-llvm-f436286cf66e81f79a24f49ed89af867c43e898b.tar.gz
bcm5719-llvm-f436286cf66e81f79a24f49ed89af867c43e898b.zip
Fix this test to succeed even if "strchr" is on a call instruction.
llvm-svn: 21675
Diffstat (limited to 'llvm/test/Regression/Transforms')
-rw-r--r--llvm/test/Regression/Transforms/SimplifyLibCalls/StrChr.ll8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/test/Regression/Transforms/SimplifyLibCalls/StrChr.ll b/llvm/test/Regression/Transforms/SimplifyLibCalls/StrChr.ll
index 7594fee4b16..2d4f5f2dac2 100644
--- a/llvm/test/Regression/Transforms/SimplifyLibCalls/StrChr.ll
+++ b/llvm/test/Regression/Transforms/SimplifyLibCalls/StrChr.ll
@@ -1,5 +1,5 @@
; Test that the StrChrOptimizer works correctly
-; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | not grep 'call.*strchr'
+; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | not grep 'call.*%strchr'
declare sbyte* %strchr(sbyte*,int)
declare int %puts(sbyte*)
@@ -14,6 +14,8 @@ int %main () {
%world = call sbyte* %strchr(sbyte* %hello_p, int 119 )
%ignore = call sbyte* %strchr(sbyte* %null_p, int 119 )
- %result = call int %puts(sbyte* %world)
- ret int %result
+ %len = call int %puts(sbyte* %world)
+ %index = add int %len, 112
+ %result = call sbyte* %strchr(sbyte* %hello_p, int %index)
+ ret int %index
}
OpenPOWER on IntegriCloud