[PATCH] Refine the ARM EHABI test cases.

Logan Chien tzuhsiang.chien at gmail.com
Wed May 29 20:04:31 PDT 2013


Hi rafael,

Since we have ARM unwind directive parser and assembler, we
can test the correctness in two stages:

1. From LLVM assembly (.ll) to ARM assembly (.s)
2. From ARM assembly (.s) to ELF object file (.o)

We already have several .s to .o test cases.  This change adds
some .ll to .s test cases and removes the redundant .ll to .o
test cases.

New test cases to test .ll to .s:

- ehabi.ll: Check the correctness of the generated unwind directives.
- section-func.ll: Check the section directives.

Removed test cases:

- ehabi-mc-cantunwind.ll
  (covered by ehabi-cantunwind.ll, and eh-directive-cantunwind.s)
- ehabi-mc-compact-pr0.ll
  (covered by ehabi.ll, eh-compact-pr0.s, eh-directive-save.s, and
   eh-directive-setfp.s)
- ehabi-mc-compact-pr1.ll
  (covered by ehabi.ll, eh-compact-pr1.s, eh-directive-save.s, and
   eh-directive-setfp.s)
- ehabi-mc.ll
  (covered by ehabi.ll, and eh-directive-integrated-test.s)
- ehabi-mc-section-group.ll
  (covered by section-func.ll, and eh-directive-section-comdat.s)
- ehabi-mc-section.ll
  (covered by section-func.ll, and eh-directive-section.s)
- ehabi-mc-sh_link.ll
  (covered by eh-directive-text-section.s, and eh-directive-section.s)

http://llvm-reviews.chandlerc.com/D891

Files:
  test/CodeGen/ARM/ehabi-mc-cantunwind.ll
  test/CodeGen/ARM/ehabi-mc-compact-pr0.ll
  test/CodeGen/ARM/ehabi-mc-compact-pr1.ll
  test/CodeGen/ARM/ehabi-mc-section-group.ll
  test/CodeGen/ARM/ehabi-mc-section.ll
  test/CodeGen/ARM/ehabi-mc-sh_link.ll
  test/CodeGen/ARM/ehabi-mc.ll
  test/CodeGen/ARM/ehabi.ll
  test/CodeGen/ARM/section-func.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D891.1.patch
Type: text/x-patch
Size: 26521 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130529/1e4afc4d/attachment.bin>


More information about the llvm-commits mailing list