diff options
Diffstat (limited to 'llvm/test/MC/ELF/cfi-sframe-errors.s')
| -rw-r--r-- | llvm/test/MC/ELF/cfi-sframe-errors.s | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/llvm/test/MC/ELF/cfi-sframe-errors.s b/llvm/test/MC/ELF/cfi-sframe-errors.s new file mode 100644 index 000000000000..20e902d06409 --- /dev/null +++ b/llvm/test/MC/ELF/cfi-sframe-errors.s @@ -0,0 +1,31 @@ +// TODO: Add other architectures as they gain sframe support +// REQUIRES: x86-registered-target +// RUN: llvm-mc --assemble --filetype=obj -triple x86_64 %s -o %t.o 2>&1 | FileCheck %s +// RUN: llvm-readelf --sframe %t.o | FileCheck --check-prefix=CHECK-NOFDES %s + + + .cfi_sections .sframe +f1: + .cfi_startproc simple +// CHECK: non-default RA register {{.*}} + .cfi_return_column 0 + nop +// CHECK: {{.*}} adjusting CFA offset without a base register.{{.*}} + .cfi_def_cfa_offset 16 // no line number reported here. + nop +// CHECK: [[@LINE+1]]:{{.*}} adjusting CFA offset without a base register.{{.*}} + .cfi_adjust_cfa_offset 16 + nop + .cfi_endproc + +f2: + .cfi_startproc + nop +// CHECK: canonical Frame Address not in stack- or frame-pointer. {{.*}} + .cfi_def_cfa 0, 4 + nop + + .cfi_endproc + +// CHECK-NOFDES: Num FDEs: 0 +// CHECK-NOFDES: Num FREs: 0 |
