4 #![crate_type = "rlib"]
5 #![feature(asm_unwind)]
10 pub extern "C" fn panicky() {}
20 // CHECK-LABEL: @asm_may_unwind
22 pub unsafe fn asm_may_unwind() {
24 // CHECK: invoke void asm sideeffect alignstack inteldialect unwind ""
25 asm!("", options(may_unwind));
28 // CHECK-LABEL: @asm_with_result_may_unwind
30 pub unsafe fn asm_with_result_may_unwind() -> u64 {
33 // CHECK: [[RES:%[0-9]+]] = invoke i64 asm sideeffect alignstack inteldialect unwind
34 // CHECK-NEXT: to label %[[NORMALBB:[a-b0-9]+]]
35 asm!("mov {}, 1", out(reg) res, options(may_unwind));
36 // CHECK: [[NORMALBB]]:
37 // CHECK: ret i64 [[RES:%[0-9]+]]