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

            Bug ID: 39679
           Summary: Disabling fp-contraction doesn't work. [#pragma clang
                    fp contract(off)]
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

Trying to prevent contracting (*,+) into an FMA operation (to guarantee
cross_product(a, a) == 0). 
I add '#pragma clang fp contract(off)' to the start of a block, compiler
accepts the pragma, but still generates an FMA instruction. 

Example at: godbolt.org/z/Cg8rYi

Thanks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to