xref: /llvm-project/llvm/test/Verifier/x86_intr.ll (revision c820f2a43eaba02db97c4ff60c58a58e6bdd391d)
1; RUN: not llvm-as < %s 2>&1 | FileCheck %s
2
3; CHECK: Calling convention parameter requires byval
4; CHECK-NEXT: ptr @non_ptr_arg0
5define x86_intrcc void @non_ptr_arg0(i32) {
6  ret void
7}
8
9; CHECK: Calling convention parameter requires byval
10; CHECK-NEXT: ptr @non_byval_ptr_arg0
11define x86_intrcc void @non_byval_ptr_arg0(ptr) {
12  ret void
13}
14
15; CHECK: Calling convention parameter requires byval
16; CHECK-NEXT: ptr @non_ptr_arg0_decl
17declare x86_intrcc void @non_ptr_arg0_decl(i32)
18
19; CHECK: Calling convention parameter requires byval
20; CHECK-NEXT: ptr @non_byval_ptr_arg0_decl
21declare x86_intrcc void @non_byval_ptr_arg0_decl(ptr)
22