diff options
Diffstat (limited to 'test/CodeGen/X86/memmove-4.ll')
-rw-r--r-- | test/CodeGen/X86/memmove-4.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/memmove-4.ll b/test/CodeGen/X86/memmove-4.ll new file mode 100644 index 0000000..027db1f --- /dev/null +++ b/test/CodeGen/X86/memmove-4.ll @@ -0,0 +1,12 @@ +; RUN: llc < %s | not grep call + +target triple = "i686-pc-linux-gnu" + +define void @a(i8* %a, i8* %b) nounwind { + %tmp2 = bitcast i8* %a to i8* + %tmp3 = bitcast i8* %b to i8* + tail call void @llvm.memmove.i32( i8* %tmp2, i8* %tmp3, i32 12, i32 4 ) + ret void +} + +declare void @llvm.memmove.i32(i8*, i8*, i32, i32) |