reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
// RUN: llvm-tblgen %s | FileCheck %s
// XFAIL: vg_leak

// CHECK: --- Defs ---

// CHECK: def A0 {
// CHECK:   bit eq = 1;
// CHECK:   bit ne = 0;
// CHECK:   bit le = 1;
// CHECK:   bit lt = 0;
// CHECK:   bit ge = 1;
// CHECK:   bit gt = 0;
// CHECK: }

// CHECK: def A1 {
// CHECK:   bit eq = 0;
// CHECK:   bit ne = 1;
// CHECK:   bit le = 1;
// CHECK:   bit lt = 1;
// CHECK:   bit ge = 0;
// CHECK:   bit gt = 0;
// CHECK: }

// CHECK: def A2 {
// CHECK:   bit eq = 0;
// CHECK:   bit ne = 1;
// CHECK:   bit le = 0;
// CHECK:   bit lt = 0;
// CHECK:   bit ge = 1;
// CHECK:   bit gt = 1;
// CHECK: }

// CHECK: def A3 {
// CHECK:   bit eq = 0;
// CHECK:   bit ne = 1;
// CHECK:   bit le = 0;
// CHECK:   bit lt = 0;
// CHECK:   bit ge = 1;
// CHECK:   bit gt = 1;
// CHECK: }

class A<int x, int y> {
  bit eq = !eq(x, y);
  bit ne = !ne(x, y);
  bit le = !le(x, y);
  bit lt = !lt(x, y);
  bit ge = !ge(x, y);
  bit gt = !gt(x, y);
}

def A0 : A<-3, -3>;
def A1 : A<-1, 4>;
def A2 : A<3, -2>;
def A3 : A<4, 2>;