1 ; RUN: not llvm-as < %s 2>&1 | FileCheck %s
3 ; CHECK: Intrinsic called with incompatible signature
4 ; CHECK-NEXT: %reg = call i32 @llvm.read_register.i64(
5 ; CHECK: Invalid user of intrinsic instruction!
6 ; CHECK-NEXT: %reg = call i32 @llvm.read_register.i64(
7 define i32 @read_register_missing_mangling() {
8 %reg = call i32 @llvm.read_register(metadata !0)
12 declare i64 @llvm.read_register(metadata)