This is pretty much based on the same test for XMM registers. Signed-off-by: Martin Storsjö <martin@martin.st>