summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/pr42235.c
blob: 582c8a2d4dbc9152eec7ba8b8202bc1549a3f785 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-options "-mthumb -O2" }  */
/* { dg-require-effective-target arm_thumb1_ok } */
/* { dg-final { scan-assembler-not "add\[\\t \]*r.,\[\\t \]*r.,\[\\t \]*\#1" } } */
/* { dg-final { scan-assembler-not "add\[\\t \]*r.,\[\\t \]*\#1" } } */

#include <string.h>

int foo (char *x)
{
  memset (x, 0, 6);
}