1 ; RUN: llvm-as -o - %s | llvm-dis -o - 2>&1 | FileCheck %s
3 ; Make sure we can assemble and disassemble IR containing intrinsics with
10 ; CHECK: %c1 = call ptr @llvm.ssa.copy.p0(ptr %arg)
11 ; CHECK: %c2 = call ptr @llvm.ssa.copy.p0(ptr %tmp)
12 ; CHECK: %c3 = call ptr @llvm.ssa.copy.p0(ptr %arg2)
13 ; CHECK: %c4 = call ptr @llvm.ssa.copy.p0(ptr %tmp2)
15 define void @f0(%0* %arg, %1* %tmp, %1** %tmp2, %0** %arg2) {
17 %cmp1 = icmp ne %0* %arg, null
18 %c1 = call %0* @llvm.ssa.copy.p0s_s.0(%0* %arg)
19 %c2 = call %1* @llvm.ssa.copy.p0s_s.1(%1* %tmp)
20 %c3 = call %0** @llvm.ssa.copy.p0p0s_s.1(%0** %arg2)
21 %c4 = call %1** @llvm.ssa.copy.p0p0s_s.0(%1** %tmp2)
25 declare %0* @llvm.ssa.copy.p0s_s.0(%0* returned)
27 declare %1* @llvm.ssa.copy.p0s_s.1(%1* returned)
29 declare %0** @llvm.ssa.copy.p0p0s_s.1(%0** returned)
31 declare %1** @llvm.ssa.copy.p0p0s_s.0(%1** returned)