1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/TableGen/rc-weight-override.td
2020-02-14 15:49:52 -08:00

25 lines
634 B
TableGen

// RUN: llvm-tblgen -gen-register-info -I %p/../../include -I %p/Common %s | FileCheck %s
include "reg-with-subregs-common.td"
// CHECK-LABEL: static const RegClassWeight RCWeightTable[] = {
// CHECK: {1, 256}, // GPR32
// CHECK: {2, 256}, // GPR_64
// CHECK: {0, 256}, // GPR_64_W0
def GPR_64_W0 : RegisterClass<"", [v2i32], 64, (add GPR64)> {
let Weight = 0;
}
// CHECK: {1, 256}, // GPR_64_W1
def GPR_64_W1 : RegisterClass<"", [v2i32], 64, (add GPR64)> {
let Weight = 1;
}
// CHECK: {8, 256}, // GPR_64_W8
def GPR_64_W8 : RegisterClass<"", [v2i32], 64, (add GPR64)> {
let Weight = 8;
}
// CHECK: {32, 256}, // GPR_1024