The attached patch fixes some warnings generated by the setmem... patterns in s390.md during build and add test cases for the patterns. The patch is to be added on to p of the movstr patch: https://gcc.gnu.org/ml/gcc-patches/2015-11/msg03485.html The test cases validate that the patterns are actually used, but at the moment the setmem_long_and pattern is never actually used and thus the test case would fail. So I've split the patch in two (both attached to this message) to activate this part of the test once we've fixed that. The patch has passed the SPEC2006 testsuite without any measurable changes in performance. Ciao Dominik ^_^ ^_^ -- Dominik Vogt IBM Germany