aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/TableGen/check-duplicate-tuple-regs.td
blob: e39345a1ef2c618e383585ad08e8f5d56e68b251 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: not llvm-tblgen -gen-register-info -I %p/../../include -I %p/Common %s 2>&1 | FileCheck %s

include "reg-with-subregs-common.td"

// CHECK: error: Register tuple redefines register 'R0_R1_R2_R3'
def GPR128_Aligned : RegisterTuples<[sub0, sub1, sub2, sub3],
                                    [(decimate (shl GPR32, 0), 4),
                                     (decimate (shl GPR32, 1), 4),
                                     (decimate (shl GPR32, 2), 4),
                                     (decimate (shl GPR32, 3), 4)]>;