1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/TableGen/CodeGenSchedule-duplicate-instrw.td
2020-07-27 09:41:10 -06:00

21 lines
650 B
TableGen

// RUN: not llvm-tblgen --gen-subtarget -I %p/../../include -I %p/Common %s -o - 2>&1 | FileCheck %s
include "llvm/Target/Target.td"
def FakeTarget : Target { }
def FakeModel : SchedMachineModel { }
def WriteA : SchedWrite;
def WriteB : SchedWrite;
let SchedModel = NoSchedModel in {
def : InstRW<[WriteA], (instrs COPY)>;
def : InstRW<[WriteB], (instrs COPY)>;
// CHECK: [[@LINE-1]]:3: error: Overlapping InstRW definition for "COPY" also matches previous "(instrs COPY)".
// CHECK-NEXT: def : InstRW<[WriteB], (instrs COPY)>;
// CHECK: [[@LINE-6]]:3: note: Previous match was here.
// CHECK-NEXT: def : InstRW<[WriteA], (instrs COPY)>;
}