[llvm-commits] CVS: llvm/test/Regression/CFrontend/2004-02-13-Memset.c.tr
Chris Lattner
lattner at cs.uiuc.edu
Fri Feb 13 21:47:01 PST 2004
Changes in directory llvm/test/Regression/CFrontend:
2004-02-13-Memset.c.tr added (r1.1)
---
Log message:
Test that the CFE compiles memset and bzero to llvm.memset
---
Diffs of the changes: (+6 -0)
Index: llvm/test/Regression/CFrontend/2004-02-13-Memset.c.tr
diff -c /dev/null llvm/test/Regression/CFrontend/2004-02-13-Memset.c.tr:1.1
*** /dev/null Fri Feb 13 21:46:48 2004
--- llvm/test/Regression/CFrontend/2004-02-13-Memset.c.tr Fri Feb 13 21:46:37 2004
***************
*** 0 ****
--- 1,6 ----
+ // RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.memset | wc -l | grep 3
+
+ void test(int* X, char *Y) {
+ memset(X, 4, 1000);
+ bzero(Y, 100);
+ }
More information about the llvm-commits
mailing list