[llvm-bugs] [Bug 49346] New: Bad machine code: Subrange lanemask is invalid

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 24 17:25:17 PST 2021


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

            Bug ID: 49346
           Summary: Bad machine code: Subrange lanemask is invalid
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: paulsson at linux.vnet.ibm.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 24570
  --> https://bugs.llvm.org/attachment.cgi?id=24570&action=edit
reduced testcase

llc -mcpu=arch13 -O3 -disable-machine-dce -systemz-subreg-liveness
-verify-misched -join-globalcopies=false  tc_crash0_aftercreduce.ll

# Before machine scheduling.
********** INTERVALS **********
%1 EMPTY weight:0.000000e+00
%3 [48r,48d:0)  0 at 48r L0000000000000000 [48r,48d:0)  0 at 48r weight:0.000000e+00
%4 [48r,64r:0)[64r,96r:1)  0 at 48r 1 at 64r LFFFFFFFFFFFFFFFF [48r,64r:0)[64r,96r:1)
 0 at 48r 1 at 64r weight:0.000000e+00
RegMasks: 144r
********** MACHINEINSTRS **********
# Machine code for function j: NoPHIs, TracksLiveness, TiedOpsRewritten

0B      bb.0.bb:
          successors: %bb.1(0x80000000); %bb.1(100.00%)

16B       CGHI undef %1:gr64bit, 7, implicit-def $cc
48B       %4:gr64bit = LGHI 0
64B       %4:gr64bit = LOCGHI %4:gr64bit(tied-def 0), 1, 14, 2, implicit killed
$cc
96B       STGRL %4:gr64bit, @c :: (store 8 into @c)
112B      ADJCALLSTACKDOWN 0, 0
128B      $r2d = LGHI 0
144B      CallBRASL @i, killed $r2d, <regmask $f8d $f9d $f10d $f11d $f12d $f13d
$f14d $f15d $f8q $f9q $f12q $f13q $f8s $f9s $f10s $f11s $f12s $f13s $f14s $f15s
$r6d $r7d $r8d $r9d $r10d $r11d $r12d $r13d $r14d $r15d $r6h $r7h $r8h and 22
more...>, implicit-def dead $r14d, implicit-def dead $cc, implicit $fpc
160B      ADJCALLSTACKUP 0, 0

176B    bb.1.bb3:
        ; predecessors: %bb.0, %bb.1
          successors: %bb.1(0x80000000); %bb.1(100.00%)

192B      J %bb.1

# End machine code for function j.

*** Bad machine code: Subrange lanemask is invalid ***
- function:    j
- interval:    %4 [48r,64r:0)[64r,96r:1)  0 at 48r 1 at 64r LFFFFFFFFFFFFFFFF
[48r,64r:0)[64r,96r:1)  0 at 48r 1 at 64r weight:0.000000e+00
LLVM ERROR: Found 1 machine code errors.

-- 
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/20210225/8fbdeb01/attachment.html>


More information about the llvm-bugs mailing list