Changeset View
Changeset View
Standalone View
Standalone View
test/FileCheck/FileCheckImprovement/check-pattern.txt
// RUN: FileCheck -input-file %s %s | |||||
op0xA1; | |||||
op0xc2; | |||||
op0x33; | |||||
// CHECK-PATTERN hex_num: {{0x[0-9a-fA-F]+}} | |||||
// CHECK-PATTERN reg: {{\:(RegName)\#(hex_num)}} | |||||
// CHECK-PATTERN operation: {{\:(OpName) \#(reg)\:(RegName)\=(r), \#(reg)\:(RegName)\=(reg)}} | |||||
// CHECK-PATTERN inc: {{\:(VarName) = \:(VarName)\+\:(Number)}} | |||||
// CHECK-PATTERN alt: {{x|y}} | |||||
// CHECK-PATTERN altincheck: check {{\#(alt)}} | |||||
// CHECK{3}: {{op\#(hex_num)}}; | |||||
reg0x0 | |||||
// CHECk: {{\#(reg)\:(RegName)\=(reg)}} | |||||
ADD r0xA, reg0x10 | |||||
// CHECK: {{\#(operation)\:(OpName)\=(ADD)}} | |||||
TEMP = TEMP+4 | |||||
// CHECK: {{\#(inc)\:(Number)\=(4)\:(VarName)\=(TEMP)}} | |||||
check y | |||||
// CHECK: {{\#altincheck}} |