aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/aarch64/movi_1.c
blob: e2842b39e02413e4b333a157405f7dcf605071ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O2" } */

void
dummy (short* b)
{
  /* { dg-final { scan-assembler "movi\tv\[0-9\]+\.4h, 0x4, lsl 8" } } */
  /* { dg-final { scan-assembler-not "movi\tv\[0-9\]+\.4h, 0x400" } } */
  /* { dg-final { scan-assembler-not "movi\tv\[0-9\]+\.4h, 1024" } } */
  register short x asm ("h8") = 1024;
  asm volatile ("" : : "w" (x));
  *b = x;
}