[llvm-bugs] [Bug 37586] New: update_test_checks does not generate checks for functions with period in the name

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 25 04:14:28 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37586

            Bug ID: 37586
           Summary: update_test_checks does not generate checks for
                    functions with period in the name
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: Matthew.Arsenault at amd.com
                CC: llvm-bugs at lists.llvm.org

update_test_checks seems to ignore functions with periods in the name. Consider
this test:

; RUN: opt -S -instcombine %s | FileCheck %s

define void @foo.bar() {
  ret void
}

define void @foo_bar() {
  ret void
}


After running update_test_checks, the result is:
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -instcombine %s | FileCheck %s

define void @foo.bar() {
  ret void
}

define void @foo_bar() {
; CHECK-LABEL: @foo_bar(
; CHECK-NEXT:    ret void
;
  ret void
}

Note foo_bar has the expected check lines, but foo.bar does not

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180525/cffe5827/attachment.html>


More information about the llvm-bugs mailing list