view gcc/testsuite/gcc.target/arm/thumb2-mul-space.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* Use 16-bit multiply instruction in Thumb-2 mode when optimizing for
   size.  */
/* { dg-options "-mthumb -Os" }  */
/* { dg-require-effective-target arm_thumb2_ok } */
/* { dg-final { scan-assembler "muls" } } */

int f(int i, int j) 
{
  return i * j;
}