diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-05-22 21:19:19 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-05-22 21:19:19 +0000 |
commit | d86323efc9b107ad560cd3f7f9150f67d20b213c (patch) | |
tree | bcdacf3243ac9e31d7f7c6a43a51ac6161daa7f1 /test/CodeGen/X86/memcpy-2.ll | |
parent | abe93d95e8cc721a5b24b8225dc1a92569276c8a (diff) | |
download | external_llvm-d86323efc9b107ad560cd3f7f9150f67d20b213c.zip external_llvm-d86323efc9b107ad560cd3f7f9150f67d20b213c.tar.gz external_llvm-d86323efc9b107ad560cd3f7f9150f67d20b213c.tar.bz2 |
Add a couple of test cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51441 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/memcpy-2.ll')
-rw-r--r-- | test/CodeGen/X86/memcpy-2.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/X86/memcpy-2.ll b/test/CodeGen/X86/memcpy-2.ll new file mode 100644 index 0000000..972f55d --- /dev/null +++ b/test/CodeGen/X86/memcpy-2.ll @@ -0,0 +1,15 @@ +; RUN: llvm-as < %s | llc -march=x86 -mattr=-sse | grep mov | count 7 +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse | grep mov | count 5 + + %struct.ParmT = type { [25 x i8], i8, i8* } +@.str12 = internal constant [25 x i8] c"image\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00" ; <[25 x i8]*> [#uses=1] + +declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) nounwind + +define void @t(i32 %argc, i8** %argv) nounwind { +entry: + %parms.i = alloca [13 x %struct.ParmT] ; <[13 x %struct.ParmT]*> [#uses=1] + %parms1.i = getelementptr [13 x %struct.ParmT]* %parms.i, i32 0, i32 0, i32 0, i32 0 ; <i8*> [#uses=1] + call void @llvm.memcpy.i32( i8* %parms1.i, i8* getelementptr ([25 x i8]* @.str12, i32 0, i32 0), i32 25, i32 1 ) nounwind + unreachable +} |