[RISCV] Add test coverage for sum reduction recognition in DAG

And adjust an existing test to not be a simple reduction to preserve test intent.

GitOrigin-RevId: cd03d970431e9aa5d7df1bbef85353c4f2a21d40
2 files changed