[llvm-bugs] [Bug 47990] New: static assertion in WebAssembly because cannot handle Strict mode

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 27 09:29:07 PDT 2020


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

            Bug ID: 47990
           Summary: static assertion in WebAssembly because cannot handle
                    Strict mode
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: melanie.blower at intel.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

dmajor added a comment.

After D87528: Enable '#pragma STDC FENV_ACCESS' commit, our bots have a failure
on the wasm target, could you please take a look?

test.c:

  double a, b;
  c() {
  #pragma STDC FENV_ACCESS ON
    b == a;
  }

Run `clang -cc1 -triple wasm32-unknown-wasi -emit-obj test.c` (clang needs to
be build with `-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly`)

Result:

  clang:
/home/vm/src/llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:3764:
bool (anonymous namespace)::SelectionDAGLegalize::ExpandNode(llvm::SDNode *):
Assertion `!IsStrict && "Don't know how to expand for strict nodes."' failed.

-- 
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/20201027/8f8c0980/attachment-0001.html>


More information about the llvm-bugs mailing list