[llvm-commits] CVS: llvm/test/Regression/Transforms/SimplifyLibCalls/2005-04-24-strcat.ll

Reid Spencer reid at x10sys.com
Mon Apr 25 00:29:44 PDT 2005



Changes in directory llvm/test/Regression/Transforms/SimplifyLibCalls:

2005-04-24-strcat.ll added (r1.1)
---
Log message:

A test case for testing the StrCatOptimizer, currently XFAILed everywhere.


---
Diffs of the changes:  (+16 -0)

 2005-04-24-strcat.ll |   16 ++++++++++++++++
 1 files changed, 16 insertions(+)


Index: llvm/test/Regression/Transforms/SimplifyLibCalls/2005-04-24-strcat.ll
diff -c /dev/null llvm/test/Regression/Transforms/SimplifyLibCalls/2005-04-24-strcat.ll:1.1
*** /dev/null	Mon Apr 25 02:29:41 2005
--- llvm/test/Regression/Transforms/SimplifyLibCalls/2005-04-24-strcat.ll	Mon Apr 25 02:29:30 2005
***************
*** 0 ****
--- 1,16 ----
+ ; Test that the StrCatOptimizer works correctly
+ ; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | grep strlen
+ ; XFAIL: *
+ 
+ declare sbyte* %strcat(sbyte*,sbyte*)
+ %hello = constant [6 x sbyte] c"hello\00"
+ 
+ implementation   ; Functions:
+ 
+ int %main () {
+   %target = alloca [1024 x sbyte]
+   %arg1 = getelementptr [1024 x sbyte]* %target, int 0, int 0
+   %arg2 = getelementptr [6 x sbyte]* %hello, int 0, int 0
+   %rslt = call sbyte* %strcat(sbyte* %arg1, sbyte* %arg2)
+   ret int 0
+ }






More information about the llvm-commits mailing list