1 ; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s --check-prefix=TYPED
2 ; RUN: llvm-as --force-opaque-pointers < %s | llvm-dis --force-opaque-pointers | FileCheck %s --check-prefix=OPAQUE
4 ; An opaque pointer type should not be accepted for an intrinsic that
5 ; specifies a fixed pointer type, outside of --force-opaque-pointers mode.
8 ; TYPED: Intrinsic has incorrect return type!
9 ; OPAQUE: call ptr @llvm.stacksave()
10 call ptr @llvm.stacksave()
12 ; TYPED: Intrinsic has incorrect argument type!
13 ; OPAQUE: call <2 x i64> @llvm.masked.expandload.v2i64(ptr null, <2 x i1> zeroinitializer, <2 x i64> zeroinitializer)
14 call <2 x i64> @llvm.masked.expandload.v2i64(ptr null, <2 x i1> zeroinitializer, <2 x i64> zeroinitializer)
19 declare ptr @llvm.stacksave()
20 declare <2 x i64> @llvm.masked.expandload.v2i64(ptr, <2 x i1>, <2 x i64>)