[llvm-bugs] [Bug 35631] New: fatal error: error in backend: Cannot select: 0x5f34ff8: f32 = SPISD::XTOF

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Dec 11 13:23:22 PST 2017


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

            Bug ID: 35631
           Summary: fatal error: error in backend: Cannot select:
                    0x5f34ff8: f32 = SPISD::XTOF
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Target Description Classes
          Assignee: unassignedbugs at nondot.org
          Reporter: rtrieu at google.com
                CC: fedor.v.sergeev at gmail.com, jyknight at google.com,
                    llvm-bugs at lists.llvm.org

Suspected root cause in r318704.

$ cat test.cpp 
class S {
  void Run(int frame_count);
  float floats[10];
  int cols;
  int rows;
};

void S::Run(int count) {

  const unsigned long long modulus = 240;
  const float angle = count % modulus;

  for (int i = 0; i < rows; ++i) {
    for (int j = 0; j < cols; ++j) {
      unsigned index = rows * i + j;
      float rotation = 0;
      if (i % 2 == j % 2) {
        rotation = angle;
      }
      floats[index] = rotation;
    }
  }
}

$ clang -target sparc-myriad test.cpp
fatal error: error in backend: Cannot select: 0x5f5eff8: f32 = SPISD::XTOF
      0x5f5f130
  0x5f5f130: f64,ch = load<LD8[FixedStack8]> 0x5f5f200, FrameIndex:i32<8>,
undef:i32
    0x5f5f060: i32 = FrameIndex<8>
    0x5f5c2d0: i32 = undef
In function: _ZN1S3RunEi
clang-6.0: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 6.0.0 (trunk 320396)

-- 
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/20171211/a69c140b/attachment.html>


More information about the llvm-bugs mailing list