Implementations of testFoo() for Register and ValueOperand.