view gcc/testsuite/gcc.target/aarch64/target_attr_18.c @ 152:2b5abeee2509

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

/* This is a copy of target_attr_6.c to instead check no-strict-align.  */
/* { dg-do compile } */
/* { dg-options "-O2 -save-temps -mstrict-align" } */

/* Inlining strict-align functions into non-strict align
   functions is not allowed.  */

int
bar (int a)
{
  return a - 6;
}

__attribute__ ((target ("no-strict-align")))
int
bam (int a)
{
  return a - bar (a);
}

/* { dg-final { scan-assembler "bl.*bar" } } */