summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sh/sh2a-movi20s.c
blob: 55d2f665b3b0965ac6ddcfa80a99e13c63150b21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Testcase to check generation of 'MOVI20S #imm20, Rn'.  */
/* { dg-do assemble {target sh*-*-*}}  */
/* { dg-options "-O0" } */
/* { dg-skip-if "" { "sh*-*-*" } "*" "-m2a -m2a-nofpu -m2a-single -m2a-single-only" }  */
/* { dg-final { scan-assembler "movi20s"} }  */

volatile long la;

void
testfun (void)
{
  la = -134217728;
  la = 134217216;
}