diff options
Diffstat (limited to 'llvm/test/Bitcode/operand-bundles.ll')
-rw-r--r-- | llvm/test/Bitcode/operand-bundles.ll | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/operand-bundles.ll b/llvm/test/Bitcode/operand-bundles.ll index ab28cff..9959167 100644 --- a/llvm/test/Bitcode/operand-bundles.ll +++ b/llvm/test/Bitcode/operand-bundles.ll @@ -58,6 +58,13 @@ define void @f4(i32* %ptr) { ; Invoke versions of the above tests: +define void @f5(i32* %ptr) { +; CHECK-LABEL: @f5( + entry: + call void @callee0() [ "foo"(metadata !"metadata_string") ] +; CHECK: call void @callee0() [ "foo"(metadata !"metadata_string") ] + ret void +} define void @g0(i32* %ptr) personality i8 3 { ; CHECK-LABEL: @g0( @@ -150,3 +157,16 @@ exception: normal: ret void } + +define void @g5(i32* %ptr) personality i8 3 { +; CHECK-LABEL: @g5( + entry: + invoke void @callee0() [ "foo"(metadata !"metadata_string") ] to label %normal unwind label %exception +; CHECK: invoke void @callee0() [ "foo"(metadata !"metadata_string") ] + +exception: + %cleanup = landingpad i8 cleanup + br label %normal +normal: + ret void +}
\ No newline at end of file |