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

            Bug ID: 33795
           Summary: [AVX512] incorrect register in vpbroadcastb
                    instruction
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedb...@nondot.org
          Reporter: babo...@gmail.com
                CC: llvm-bugs@lists.llvm.org

Created attachment 18794
  --> https://bugs.llvm.org/attachment.cgi?id=18794&action=edit
reproducer

clang trunk, x86 (32 bit mode).

Clang generates "vpbroadcastb    %ch, %xmm1" instruction (at least it intends
doing so). The instruction consumes 8 bit from general purpose register, but
only 32 registers are allowed. As a result, clang tries to encode
"vpbroadcastb    %ch, %xmm1" as 62 f2 7d 08 7a cd, which really is
"vpbroadcastb %ebp,%zmm1".

I assume instruction description is incorrect.

The instruction was generated by "Machine Instruction Scheduler on function"
pass, if this matters.

Reproducer isn't really small, check "run" file for instruction for compiling
it, they should be self explanatory.

Let me know if more details are needed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to