diff options
author | H.J. Lu <hjl@gcc.gnu.org> | 2012-02-10 12:03:08 -0800 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2012-02-10 12:03:08 -0800 |
commit | c3b0c721e8e6f236f0609f2b753381369d0a0119 (patch) | |
tree | c8935df4606dac950fd045eb726f5b7ce61e0143 /gcc | |
parent | 9ac1504be01a543e183091558f1b146a0d7ee25a (diff) | |
download | gcc-c3b0c721e8e6f236f0609f2b753381369d0a0119.zip gcc-c3b0c721e8e6f236f0609f2b753381369d0a0119.tar.gz gcc-c3b0c721e8e6f236f0609f2b753381369d0a0119.tar.bz2 |
Add the testcase for PR 52146
From-SVN: r184113
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr52146.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr52146.c b/gcc/testsuite/gcc.target/i386/pr52146.c new file mode 100644 index 0000000..a4804e6 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr52146.c @@ -0,0 +1,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 "-18874240" } } */ |