1 ; RUN: llvm-as < %s | llvm-dis > %t1.ll
2 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3 ; RUN: diff %t1.ll %t2.ll
5 define fastcc void @foo() {
9 define coldcc void @bar() {
10 call fastcc void @foo( )
14 define void @structret({ i8 }* sret %P) {
15 call void @structret( { i8 }* sret %P )
23 define coldcc void @bar2() {
24 call fastcc void @foo( )
28 define cc42 void @bar3() personality i32 (...)* @__gxx_personality_v0 {
29 invoke fastcc void @foo( )
30 to label %Ok unwind label %U
36 %exn = landingpad {i8*, i32}
38 resume { i8*, i32 } %exn
41 define void @bar4() personality i32 (...)* @__gxx_personality_v0 {
42 call cc42 void @bar( )
43 invoke cc42 void @bar3( )
44 to label %Ok unwind label %U
50 %exn = landingpad {i8*, i32}
52 resume { i8*, i32 } %exn
55 declare ghccc void @ghc_callee()
57 define void @ghc_caller() {
58 call ghccc void @ghc_callee()
62 declare hhvm_ccc void @hhvm_c_callee()
64 define hhvmcc void @hhvm_caller() {
65 call hhvm_ccc void @hhvm_c_callee()
69 declare i32 @__gxx_personality_v0(...)