projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ac1504
)
Add the testcase for PR 52146
author
H.J. Lu
<hjl@gcc.gnu.org>
Fri, 10 Feb 2012 20:03:08 +0000
(12:03 -0800)
committer
H.J. Lu
<hjl@gcc.gnu.org>
Fri, 10 Feb 2012 20:03:08 +0000
(12:03 -0800)
From-SVN: r184113
gcc/testsuite/gcc.target/i386/pr52146.c
[new file with mode: 0644]
patch
|
blob
diff --git a/gcc/testsuite/gcc.target/i386/pr52146.c
b/gcc/testsuite/gcc.target/i386/pr52146.c
new file mode 100644
(file)
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" } } */