[llvm-bugs] [Bug 42228] New: [llvm-exegesis] fails to measure scalar division instructions

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 11 03:00:42 PDT 2019


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

            Bug ID: 42228
           Summary: [llvm-exegesis] fails to measure scalar division
                    instructions
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-exegesis
          Assignee: unassignedbugs at nondot.org
          Reporter: lebedev.ri at gmail.com
                CC: clement.courbet at gmail.com, gchatelet at google.com,
                    llvm-bugs at lists.llvm.org

$ ./bin/llvm-exegesis -mode=latency --opcode-name=DIV8r
Check generated assembly with: /usr/bin/objdump -d /tmp/snippet-d9586f.o
---
mode:            latency
key:             
  instructions:    
    - 'DIV8r R15B'
  config:          ''
  register_initial_values: 
    - 'R15B=0x0'
    - 'AX=0x0'
cpu_name:        bdver2
llvm_triple:     x86_64-unknown-linux-gnu
num_repetitions: 10000
measurements:    []
error:           snippet crashed while running
info:            Repeating a single implicitly serial instruction
assembled_snippet:
415741B70066B8000041F6F741F6F741F6F741F6F741F6F741F6F741F6F741F6F741F6F741F6F741F6F741F6F741F6F741F6F741F6F741F6F7415FC3
...

$ /usr/bin/objdump -d /tmp/snippet-d9586f.o

/tmp/snippet-d9586f.o:     file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <foo>:
       0:       41 57                   push   %r15
       2:       41 b7 00                mov    $0x0,%r15b
       5:       66 b8 00 00             mov    $0x0,%ax
       9:       41 f6 f7                div    %r15b
       c:       41 f6 f7                div    %r15b
       f:       41 f6 f7                div    %r15b
      12:       41 f6 f7                div    %r15b
...

-- 
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/20190611/eca7d761/attachment.html>


More information about the llvm-bugs mailing list