Issue 172690
Summary TableGen crashes in GlobalISelEmitter when reg_sequence attempts to use an illegal subregister index for class
Labels tablegen, crash-on-invalid, llvm:globalisel
Assignees
Reporter arsenm
    Attempting to add this pattern to SIInstructions.td crashes tablegen. VGPR_32 doesn't support sub0; this was meant to be lo16

```
 def : GCNPat <
 (fcopysign (f32 fpimm_pos_zero), fp16vt:$src1),
   (REG_SEQUENCE VGPR_32,
 (V_MOV_B16_t16_e64 0, (i16 0), 0), sub0,
     (V_AND_B16_t16_e64 0, (S_MOV_B32 (i32 0x00008000)), 0, VGPR_16:$src1), hi16)
 >;
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to