<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - PowerPC64: Simple floating point code hits machine verifier failure"
   href="https://llvm.org/bugs/show_bug.cgi?id=27718">27718</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>PowerPC64: Simple floating point code hits machine verifier failure
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: PowerPC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>anton@samba.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following testcase:

void fn1(void) { float a = 1; }

when built with:

clang -c -O0 -mllvm -verify-machineinstrs /tmp/testcase.c

hits a machine verifier failure:

# After Instruction Selection
# Machine code for function fn1: Properties: <>
Frame Objects:
  fi#0: size=4, align=4, at location [SP]
Constant Pool:
  cp#0: 1.000000e+00, align=4

BB#0: derived from LLVM BB %0
    %vreg1<def> = ADDIStocHA %X2, <cp#0>; G8RC_and_G8RC_NOX0:%vreg1
    %vreg0<def> = LFS <cp#0>[TF=112], %vreg1; mem:LD4[ConstantPool]
VSSRC:%vreg0 G8RC_and_G8RC_NOX0:%vreg1
    %vreg2<def> = LIS 16256; GPRC:%vreg2
    STW %vreg2<kill>, 0, <fi#0>; mem:ST4[%1] GPRC:%vreg2
    BLR8 %LR8<imp-use>, %RM<imp-use>

# End machine code for function fn1.

*** Bad machine code: Illegal virtual register for instruction ***
- function:    fn1
- basic block: BB#0  (0x1000ef8b780)
- instruction: %vreg0<def> = LFS
- operand 0:   %vreg0<def>
Expected a F4RC register, but got a VSSRC register
fatal error: error in backend: Found 1 machine code errors.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>