[llvm-bugs] [Bug 52443] New: Inconsistent multi-versioning behaviour

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 8 21:52:39 PST 2021


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

            Bug ID: 52443
           Summary: Inconsistent multi-versioning behaviour
           Product: clang
           Version: 13.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: n.makhsudyan at yahoo.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Created attachment 25431
  --> https://bugs.llvm.org/attachment.cgi?id=25431&action=edit
Source code, Makefile and README

Clang generates incorrect instructions omitting multiversioned function call.

STEPS TO REPRODUCE:

1. Download the attachment and run 'make' in bug_report directory
2. Execute test and observe that nothing is printed
3. Comment out line 4 in PrintTester.C
4. Build again with 'make' and run test


SAMPLE RESULTS:
(running on a machine with avx512f support)

~/bug_report> make
...
~/bug_report> ./test

(after step3)
~/bug_report> make
...
~/bug_report> ./test
TARGET AVX512F!

-- 
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/20211109/83c4c8c4/attachment.html>


More information about the llvm-bugs mailing list