memcpy.ll 341 B

123456789
  1. ; RUN: not opt -verify < %s 2>&1 | FileCheck %s
  2. ; CHECK: alignment argument of memory intrinsics must be a power of 2
  3. define void @foo(i8* %P, i8* %Q) {
  4. call void @llvm.memcpy.p0i8.p0i8.i32(i8* %P, i8* %Q, i32 4, i32 3, i1 false)
  5. ret void
  6. }
  7. declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i32, i1) nounwind