Commit c3b0c721 by H.J. Lu

Add the testcase for PR 52146

From-SVN: r184113
parent 9ac1504b
/* { 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 "-18874240" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment