brintos

brintos / llvm-project-archived public Read only

0
0
Text · 902 B · b8e2c2d Raw
38 lines · plain
1; RUN: llvm-as < %s -disable-output 2>&1 | FileCheck %s -allow-empty2; CHECK-NOT: error3; CHECK-NOT: warning4; RUN: verify-uselistorder < %s5 6; Check ordering of callee operand versus the argument operand.7define void @call(ptr %p) {8  call void (...) %p(ptr %p)9  ret void10}11 12; Check ordering of callee operand versus the argument operand.13declare void @personality(ptr)14define void @invoke(ptr %p) personality ptr @personality {15entry:16  invoke void (...) %p(ptr %p)17  to label %normal unwind label %exception18normal:19  ret void20exception:21  landingpad { ptr, i32 } cleanup22  ret void23}24 25; Check order for callbr instruction. Cannot reuse labels in the test since the26; verifier prevents duplicating callbr destinations.27define void @callbr() {28entry:29  callbr i32 asm "", "=r,r,!i,!i"(i32 0)30              to label %one [label %two, label %three]31one:32  ret void33two:34  ret void35three:36  ret void37}38