1 ; Test upgrade of llvm.annotation intrinsics.
3 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
4 ; RUN: llvm-dis < %s.bc | FileCheck %s
7 ; TYPED: define i32 @f(i32 [[ARG0:%.*]], ptr [[ARG1:%.*]], ptr [[ARG2:%.*]], i32 [[ARG3:%.*]])
8 ; CHECK: define i32 @f(i32 [[ARG0:%.*]], ptr [[ARG1:%.*]], ptr [[ARG2:%.*]], i32 [[ARG3:%.*]])
9 define i32 @f(i32 %arg0, ptr %arg1, ptr %arg2, i32 %arg3) {
10 %result = call i32 @llvm.annotation.i32(i32 %arg0, ptr %arg1, ptr %arg2, i32 %arg3)
11 ; CHECK: [[RESULT:%.*]] = call i32 @llvm.annotation.i32.p0(i32 [[ARG0]], ptr [[ARG1]], ptr [[ARG2]], i32 [[ARG3]])
15 declare i32 @llvm.annotation.i32(i32, i8*, ptr, i32)
16 ; CHECK: declare i32 @llvm.annotation.i32.p0(i32, ptr, ptr, i32)