File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
test/Instrumentation/BoundsChecking Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -1604,12 +1604,6 @@ parseBoundsCheckingOptions(StringRef Params) {
16041604 /* MayReturn=*/ true ,
16051605 /* HandlerPreserveAllRegs=*/ false ,
16061606 };
1607- } else if (ParamName == " min-rt-handler-preserve-all-regs" ) {
1608- Options.Rt = {
1609- /* MinRuntime=*/ true ,
1610- /* MayReturn=*/ true ,
1611- /* HandlerPreserveAllRegs=*/ true ,
1612- };
16131607 } else if (ParamName == " min-rt-abort" ) {
16141608 Options.Rt = {
16151609 /* MinRuntime=*/ true ,
@@ -1618,6 +1612,9 @@ parseBoundsCheckingOptions(StringRef Params) {
16181612 };
16191613 } else if (ParamName == " merge" ) {
16201614 Options.Merge = true ;
1615+ } else if (ParamName == " handler-preserve-all-regs" ) {
1616+ if (Options.Rt )
1617+ Options.Rt ->HandlerPreserveAllRegs = true ;
16211618 } else {
16221619 StringRef ParamEQ;
16231620 StringRef Val;
Original file line number Diff line number Diff line change 88; RUN: opt < %s -passes='bounds-checking<rt-abort>' -S | FileCheck %s --check-prefixes=RTABORT-NOMERGE
99; RUN: opt < %s -passes='bounds-checking<min-rt>' -S | FileCheck %s --check-prefixes=MINRT-NOMERGE
1010; RUN: opt < %s -passes='bounds-checking<min-rt-abort>' -S | FileCheck %s --check-prefixes=MINRTABORT-NOMERGE
11- ; RUN: opt < %s -passes='bounds-checking<min-rt-handler-preserve-all-regs>' -S | FileCheck %s --check-prefixes=MINRT-PRESERVE-NOMERGE
11+
12+ ; RUN: opt < %s -passes='bounds-checking<trap;handler-preserve-all-regs>' -S | FileCheck %s --check-prefixes=TR-NOMERGE
13+ ; RUN: opt < %s -passes='bounds-checking<rt;handler-preserve-all-regs>' -S | FileCheck %s --check-prefixes=RT-NOMERGE
14+ ; RUN: opt < %s -passes='bounds-checking<rt-abort;handler-preserve-all-regs>' -S | FileCheck %s --check-prefixes=RTABORT-NOMERGE
15+ ; RUN: opt < %s -passes='bounds-checking<min-rt;handler-preserve-all-regs>' -S | FileCheck %s --check-prefixes=MINRT-PRESERVE-NOMERGE
16+ ; RUN: opt < %s -passes='bounds-checking<min-rt-abort;handler-preserve-all-regs>' -S | FileCheck %s --check-prefixes=MINRTABORT-NOMERGE
1217;
1318; RUN: opt < %s -passes='bounds-checking<trap;guard=3>' -S | FileCheck %s --check-prefixes=TR-GUARD-COMMON,TR-GUARD-THREE
1419; RUN: opt < %s -passes='bounds-checking<trap;guard=13>' -S | FileCheck %s --check-prefixes=TR-GUARD-COMMON,TR-GUARD-THIRTEEN
You can’t perform that action at this time.
0 commit comments