1 ; RUN: llvm-as < %s -disable-output 2>&1 | FileCheck %s -allow-empty
4 ; RUN: verify-uselistorder < %s
6 ; Check ordering of callee operand versus the argument operand.
7 define void @call(void (...)* %p) {
8 call void (...) %p(void (...)* %p)
12 ; Check ordering of callee operand versus the argument operand.
13 declare void @personality(i8*)
14 define void @invoke(void (...)* %p) personality void(i8*)* @personality {
16 invoke void (...) %p(void (...)* %p)
17 to label %normal unwind label %exception
21 landingpad { i8*, i32 } cleanup
25 ; Check order for callbr instruction. Cannot reuse labels in the test since the
26 ; verifier prevents duplicating callbr destinations.
27 define void @callbr() {
29 callbr i32 asm "", "=r,r,X,X"(i32 0,
30 i8 *blockaddress(@callbr, %two),
31 i8 *blockaddress(@callbr, %three))
32 to label %one [label %two, label %three]