[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/call-intrinsics.ll
Chris Lattner
lattner at cs.uiuc.edu
Fri Feb 27 23:29:02 PST 2004
Changes in directory llvm/test/Regression/Transforms/InstCombine:
call-intrinsics.ll added (r1.1)
---
Log message:
new testcase for intrinsic folding
---
Diffs of the changes: (+17 -0)
Index: llvm/test/Regression/Transforms/InstCombine/call-intrinsics.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/call-intrinsics.ll:1.1
*** /dev/null Fri Feb 27 23:28:52 2004
--- llvm/test/Regression/Transforms/InstCombine/call-intrinsics.ll Fri Feb 27 23:28:42 2004
***************
*** 0 ****
--- 1,17 ----
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis
+
+ declare void %llvm.memmove(sbyte*, sbyte*, uint, uint)
+ declare void %llvm.memcpy(sbyte*, sbyte*, uint, uint)
+ declare void %llvm.memset(sbyte*, ubyte, uint, uint)
+
+ %X = global sbyte 0
+ %Y = global sbyte 12
+
+ void %zero_byte_test() {
+ ; These process zero bytes, so they are a noop.
+ call void %llvm.memmove(sbyte* %X, sbyte* %Y, uint 0, uint 100)
+ call void %llvm.memcpy(sbyte* %X, sbyte* %Y, uint 0, uint 100)
+ call void %llvm.memset(sbyte* %X, ubyte 123, uint 0, uint 100)
+ ret void
+ }
+
More information about the llvm-commits
mailing list