summaryrefslogtreecommitdiff
path: root/test/Bitcode/compatibility.ll
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2015-09-11 17:27:52 +0000
committerReid Kleckner <rnk@google.com>2015-09-11 17:27:52 +0000
commit8ae5f645e78b086ced0a6bc99b9bd07205cdb73e (patch)
treec36b9c05ec2c38571fe32b028b4d08246b7ea881 /test/Bitcode/compatibility.ll
parent74869be2733581245a0e645087b9a55f13e0fec9 (diff)
[IR] Print the label operands of a catchpad like an invoke
The rest of the EH pads are fine, since they have at most one label and take fewer operands for the personality. Old catchpad vs. new: %5 = catchpad [i8* bitcast (i32 ()* @"\01?filt$0@0@main@@" to i8*)] to label %__except.ret.10 unwind label %catchendblock.9 ----- %5 = catchpad [i8* bitcast (i32 ()* @"\01?filt$0@0@main@@" to i8*)] to label %__except.ret.10 unwind label %catchendblock.9 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247433 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bitcode/compatibility.ll')
-rw-r--r--test/Bitcode/compatibility.ll12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/Bitcode/compatibility.ll b/test/Bitcode/compatibility.ll
index 400d4a4001e..9c4c958c985 100644
--- a/test/Bitcode/compatibility.ll
+++ b/test/Bitcode/compatibility.ll
@@ -773,15 +773,18 @@ entry:
catchpad1:
catchpad [] to label %normal unwind label %exn.1
- ; CHECK: catchpad [] to label %normal unwind label %exn.1
+ ; CHECK: catchpad []
+ ; CHECK-NEXT: to label %normal unwind label %exn.1
catchpad2:
catchpad [i32* %arg1] to label %normal unwind label %exn.2
- ; CHECK: catchpad [i32* %arg1] to label %normal unwind label %exn.2
+ ; CHECK: catchpad [i32* %arg1]
+ ; CHECK-NEXT: to label %normal unwind label %exn.2
catchpad3:
catchpad [i32* %arg1, i32* %arg2] to label %normal unwind label %exn.3
- ; CHECK: catchpad [i32* %arg1, i32* %arg2] to label %normal unwind label %exn.3
+ ; CHECK: catchpad [i32* %arg1, i32* %arg2]
+ ; CHECK-NEXT: to label %normal unwind label %exn.3
exn.1:
catchendpad unwind label %terminate.1
@@ -835,7 +838,8 @@ cleanup:
catchpad:
%catch = catchpad [] to label %body unwind label %catchend
- ; CHECK: %catch = catchpad [] to label %body unwind label %catchend
+ ; CHECK: %catch = catchpad []
+ ; CHECK-NEXT: to label %body unwind label %catchend
body:
invoke void @f.ccc() to label %continue unwind label %catchend