From 1b896caa6bc0575801e3ac2fa9ff23f67fab13f9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 7 Nov 2006 04:11:14 +0000 Subject: [PATCH] new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31486 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../CodeGen/Generic/2006-11-06-MemIntrinsicExpand.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/CodeGen/Generic/2006-11-06-MemIntrinsicExpand.ll diff --git a/test/CodeGen/Generic/2006-11-06-MemIntrinsicExpand.ll b/test/CodeGen/Generic/2006-11-06-MemIntrinsicExpand.ll new file mode 100644 index 00000000000..b6fadaf9413 --- /dev/null +++ b/test/CodeGen/Generic/2006-11-06-MemIntrinsicExpand.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | llc -march=x86 && +; RUN: llvm-as < %s | llc -march=x86 | not grep adc + +; PR988 + +declare void %llvm.memcpy.i64(sbyte*, sbyte*, ulong, uint) + +void %foo(ulong %a) { + %b = add ulong %a, 1 +call void %llvm.memcpy.i64( sbyte* null, sbyte* null, ulong %b, uint 1 ) + ret void +} -- 2.34.1