At the moment in SuperFileCheck, we use FileCheck's syntax for matching registers using regexes:
// ARM64: cmp {{x[0-9]+}}, {{x[0-9]+}}
// X64: mov [[REG0:[a-z0-9]+]], [[REG1:[a-z0-9]+]]
This does hurt readability. We should consider creating built-in helpers at the SuperFileCheck level that expand common regexes to make this easier to write and read. An example of what this might look like:
// ARM64: cmp {{$(REGISTER)}}, {{$(REGISTER)}}
// X64: mov [[REG0:$(REGISTER)]], [[REG1:$(REGISTER)]]
At the moment in SuperFileCheck, we use FileCheck's syntax for matching registers using regexes:
// ARM64: cmp {{x[0-9]+}}, {{x[0-9]+}}// X64: mov [[REG0:[a-z0-9]+]], [[REG1:[a-z0-9]+]]This does hurt readability. We should consider creating built-in helpers at the SuperFileCheck level that expand common regexes to make this easier to write and read. An example of what this might look like:
// ARM64: cmp {{$(REGISTER)}}, {{$(REGISTER)}}// X64: mov [[REG0:$(REGISTER)]], [[REG1:$(REGISTER)]]