[InstCombine] Preserve NSW flags for `lshr (mul nuw X, C1), C2 -> mul nuw nsw X,...
[llvm-project.git] / clang / test / CodeGenCXX / microsoft-abi-eh-inlineasm.cpp
blob4179508a8da58aa08be4069bfeddc42b598d9256
1 // RUN: %clang_cc1 -std=c++11 -emit-llvm %s -o - -triple=x86_64-pc-windows-msvc \
2 // RUN: -fexceptions -fcxx-exceptions | FileCheck %s
4 // Make sure calls to inline asm have funclet bundles.
6 extern "C" void might_throw();
7 extern "C" void foo() {
8 try {
9 might_throw();
10 } catch (int) {
11 __asm__("nop");
15 // CHECK-LABEL: define dso_local void @foo()
16 // CHECK: invoke void @might_throw()
17 // CHECK: %[[CATCHPAD:[^ ]*]] = catchpad within
18 // CHECK: call void asm sideeffect "nop", {{.*}} [ "funclet"(token %[[CATCHPAD]]) ]