PHOENIX (AP) Carlos Martinez gave up three hits in eight scoreless innings, Brandon Moss and Stephen Piscotty homered and the St. Louis Cardinals beat the Arizona Diamondbacks 8-2 on Tuesday night.

Martinez (4-0) won for the fourth time in four starts. The 24-year-old right-hander held the Diamondbacks without a hit until David Peralta's one-out single in the fourth.

Moss had four hits, including a three-run homer in the fifth inning. Piscotty added a two-run shot in the seventh.

More from FoxSports

Former Cardinal Shelby Miller (0-2) threw four scoreless innings before St. Louis broke through for five runs in the fifth.

Still, it was a small step forward for Miller, who had battled control issues and hadn't made it past the second inning in his previous two outings.

Jake Lamb and Yasmany Tomas homered for Arizona off reliever Tyler Lyons in the ninth.