<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - cannot compile BPF program using bpf_trace_printk"
   href="https://bugs.llvm.org/show_bug.cgi?id=35505">35505</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>cannot compile BPF program using bpf_trace_printk
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.0
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>viz_skywalker@yahoo.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=19511" name="attach_19511" title="Preprocessed source and associated run script">attachment 19511</a> <a href="attachment.cgi?id=19511&action=edit" title="Preprocessed source and associated run script">[details]</a></span>
Preprocessed source and associated run script

fatal error: error in backend: Cannot select: 0x564421ad8f18: ch,glue =
BPFISD::CALL 0x564421ad6b00, 0x564421ad6bd0, Register:i64
      %R1, Register:i64 %R2, Register:i64 %R3, 0x564421ad6b00:1
  0x564421ad6bd0: i64,ch = load<LD8[@bpf_trace_printk](dereferenceable)>
0x564421aafc98, 0x564421ad9390, undef:i64
    0x564421ad9390: i64 = BPFISD::Wrapper TargetGlobalAddress:i64<i32 (i8*,
i32, ...)** @bpf_trace_printk> 0
      0x564421ad96d0: i64 = TargetGlobalAddress<i32 (i8*, i32, ...)**
@bpf_trace_printk> 0
    0x564421ad63b0: i64 = undef
  0x564421ad66f0: i64 = Register %R1
  0x564421ad8eb0: i64 = Register %R2
  0x564421ad6960: i64 = Register %R3
  0x564421ad6b00: ch,glue = CopyToReg 0x564421ad6e40, Register:i64 %R3,
0x564421ad65b8, 0x564421ad6e40:1
    0x564421ad6960: i64 = Register %R3
    0x564421ad65b8: i64 = srl 0x564421ad6d08, Constant:i64<48>
      0x564421ad6d08: i64 = bswap 0x564421ad6ea8
        0x564421ad6ea8: i64,ch = load<LD2[%138], anyext from i16>
0x564421ad6550, 0x564421ad6210, undef:i64
          0x564421ad6210: i64 = add 0x564421ad64e8, Constant:i64<2>
            0x564421ad64e8: i64,ch = load<LD8[%13](dereferenceable)>
0x564421aafc98, FrameIndex:i64<11>, undef:i64
              0x564421ad62e0: i64 = FrameIndex<11>
              0x564421ad63b0: i64 = undef
            0x564421ad6c38: i64 = Constant<2>
          0x564421ad63b0: i64 = undef
      0x564421ad6348: i64 = Constant<48>
    0x564421ad6e40: ch,glue = CopyToReg 0x564421ad6b68, Register:i64 %R2,
Constant:i64<32>, 0x564421ad6b68:1
      0x564421ad8eb0: i64 = Register %R2
      0x564421ad69c8: i64 = Constant<32>
      0x564421ad6b68: ch,glue = CopyToReg 0x564421ad6688, Register:i64 %R1,
FrameIndex:i64<14>
        0x564421ad66f0: i64 = Register %R1
        0x564421ad6140: i64 = FrameIndex<14>
In function: xdp_program
clang-5.0: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 5.0.0 (tags/RELEASE_500/final)
Target: bpf
Thread model: posix
InstalledDir: /usr/bin
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to  and include the
crash backtrace, preprocessed source, and associated run script.
clang-5.0: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg: /tmp/xdp-cef28c.c
clang-5.0: note: diagnostic msg: /tmp/xdp-cef28c.sh
clang-5.0: note: diagnostic msg:</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>