|
| 1 | +; RUN: llc -mtriple=riscv64 -O3 \ |
| 2 | +; RUN: -debug-pass=Structure < %s -o /dev/null 2>&1 | \ |
| 3 | +; RUN: FileCheck %s --check-prefix=O3-WITHOUT-ENABLE-CFI-INSTR-INSERTER |
| 4 | + |
| 5 | +; RUN: llc -mtriple=riscv64 -O3 \ |
| 6 | +; RUN: --riscv-enable-cfi-instr-inserter=true \ |
| 7 | +; RUN: -debug-pass=Structure < %s -o /dev/null 2>&1 | \ |
| 8 | +; RUN: FileCheck %s --check-prefix=O3-ENABLE-CFI-INSTR-INSERTER |
| 9 | + |
| 10 | +; RUN: llc -mtriple=riscv64 -O0 \ |
| 11 | +; RUN: -debug-pass=Structure < %s -o /dev/null 2>&1 | \ |
| 12 | +; RUN: FileCheck %s --check-prefix=O0-WITHOUT-ENABLE-CFI-INSTR-INSERTER |
| 13 | + |
| 14 | +; RUN: llc -mtriple=riscv64 -O0 \ |
| 15 | +; RUN: --riscv-enable-cfi-instr-inserter=true \ |
| 16 | +; RUN: -debug-pass=Structure < %s -o /dev/null 2>&1 | \ |
| 17 | +; RUN: FileCheck %s --check-prefix=O0-ENABLE-CFI-INSTR-INSERTER |
| 18 | + |
| 19 | +; REQUIRES: asserts |
| 20 | + |
| 21 | +; O3-WITHOUT-ENABLE-CFI-INSTR-INSERTER-LABEL: Pass Arguments: |
| 22 | +; NO-O3-WITHOUT-ENABLE-CFI-INSTR-INSERTER: Check CFA info and insert CFI instructions if needed |
| 23 | +; O3-WITHOUT-ENABLE-CFI-INSTR-INSERTER: Insert CFI remember/restore state instructions |
| 24 | + |
| 25 | +; O3-ENABLE-CFI-INSTR-INSERTER-LABEL: Pass Arguments: |
| 26 | +; O3-ENABLE-CFI-INSTR-INSERTER: Check CFA info and insert CFI instructions if needed |
| 27 | +; NO-O3-ENABLE-CFI-INSTR-INSERTER: Insert CFI remember/restore state instructions |
| 28 | + |
| 29 | +; O0-WITHOUT-ENABLE-CFI-INSTR-INSERTER-LABEL: Pass Arguments: |
| 30 | +; NO-O0-WITHOUT-ENABLE-CFI-INSTR-INSERTER: Check CFA info and insert CFI instructions if needed |
| 31 | +; O0-WITHOUT-ENABLE-CFI-INSTR-INSERTER: Insert CFI remember/restore state instructions |
| 32 | + |
| 33 | +; O0-ENABLE-CFI-INSTR-INSERTER-LABEL: Pass Arguments: |
| 34 | +; O0-ENABLE-CFI-INSTR-INSERTER: Check CFA info and insert CFI instructions if needed |
| 35 | +; NO-O0-ENABLE-CFI-INSTR-INSERTER: Insert CFI remember/restore state instructions |
0 commit comments