summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr52146.c
blob: dcc28d007fe61aeb1292b7cc0e728fac361c5066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile { target { ! ia32 } } } */
/* { dg-options "-O2 -mx32" } */

void
test1 (void)
{
  int* apic_tpr_addr = (int *) 0xfee00080;
  *apic_tpr_addr += 4;
}

void
test2 (void)
{
  int* apic_tpr_addr = (int *) 0xfee00080;
  *apic_tpr_addr = 0;
}

/* { dg-final { scan-assembler-not "\[,\\t \]+-18874240" } } */