xref: /llvm-project/llvm/test/CodeGen/AMDGPU/memcpy-inline-fails.ll (revision 7a3fb6a6e3daebf11d85f62c5bd6c2800831a8fb)
1; NOTE: This is expected to fail on target that do not support memcpy.
2; RUN: llc < %s -mtriple=r600-unknown-linux-gnu 2> %t.err || true
3; RUN: FileCheck --input-file %t.err %s
4
5declare void @llvm.memcpy.inline.p0.p0.i64(ptr nocapture, ptr nocapture, i64, i1) nounwind
6
7define void @test1(ptr %a, ptr %b) nounwind {
8; CHECK: LLVM ERROR
9  tail call void @llvm.memcpy.inline.p0.p0.i64(ptr %a, ptr %b, i64 8, i1 0 )
10  ret void
11}
12