diff options
author | Tom de Vries <tom@codesourcery.com> | 2011-10-26 15:04:59 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2011-10-26 15:04:59 +0000 |
commit | e3c1bb6126be4d0b44083f77952321566748fbe6 (patch) | |
tree | 8925032e671507c7d08724f7793ffa756d110e3d | |
parent | d9d09ca2d67c64d7746c70f61fb595994ae941f5 (diff) | |
download | gcc-e3c1bb6126be4d0b44083f77952321566748fbe6.zip gcc-e3c1bb6126be4d0b44083f77952321566748fbe6.tar.gz gcc-e3c1bb6126be4d0b44083f77952321566748fbe6.tar.bz2 |
HIcmp.c: Fix unaligned pointer.
2011-10-26 Tom de Vries <tom@codesourcery.com>
* gcc.c-torture/unsorted/HIcmp.c: Fix unaligned pointer.
* gcc.c-torture/unsorted/HIset.c: Same.
* gcc.c-torture/unsorted/SIcmp.c: Same.
* gcc.c-torture/unsorted/SIset.c: Same.
* gcc.c-torture/unsorted/SFset.c: Same.
* gcc.c-torture/unsorted/UHIcmp.c: Same.
* gcc.c-torture/unsorted/USIcmp.c: Same.
* gcc.c-torture/unsorted/DFcmp.c: Same.
From-SVN: r180528
-rw-r--r-- | gcc/testsuite/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/unsorted/DFcmp.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/unsorted/HIcmp.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/unsorted/HIset.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/unsorted/SFset.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/unsorted/SIcmp.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/unsorted/SIset.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/unsorted/UHIcmp.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/unsorted/USIcmp.c | 2 |
9 files changed, 19 insertions, 8 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 33542ac..c7745ad 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2011-10-26 Tom de Vries <tom@codesourcery.com> + + * gcc.c-torture/unsorted/HIcmp.c: Fix unaligned pointer. + * gcc.c-torture/unsorted/HIset.c: Same. + * gcc.c-torture/unsorted/SIcmp.c: Same. + * gcc.c-torture/unsorted/SIset.c: Same. + * gcc.c-torture/unsorted/SFset.c: Same. + * gcc.c-torture/unsorted/UHIcmp.c: Same. + * gcc.c-torture/unsorted/USIcmp.c: Same. + * gcc.c-torture/unsorted/DFcmp.c: Same. + 2011-10-26 Jakub Jelinek <jakub@redhat.com> * gcc.target/i386/avx2-i32gatherd-1.c: Adjust scan-assembler regex diff --git a/gcc/testsuite/gcc.c-torture/unsorted/DFcmp.c b/gcc/testsuite/gcc.c-torture/unsorted/DFcmp.c index b32b0ec..18b20e6 100644 --- a/gcc/testsuite/gcc.c-torture/unsorted/DFcmp.c +++ b/gcc/testsuite/gcc.c-torture/unsorted/DFcmp.c @@ -12,7 +12,7 @@ type glob0, glob1; #define adrx0 (E0[x0]) #define regx0 (p0[x0]) -#define E1 ((type *)11111111) +#define E1 ((type *)(11111111 & ~(__alignof__ (type) - 1))) #define reg1 r1 #define indreg1 (*p1) #define imm1 33 diff --git a/gcc/testsuite/gcc.c-torture/unsorted/HIcmp.c b/gcc/testsuite/gcc.c-torture/unsorted/HIcmp.c index eea3984..77b4788 100644 --- a/gcc/testsuite/gcc.c-torture/unsorted/HIcmp.c +++ b/gcc/testsuite/gcc.c-torture/unsorted/HIcmp.c @@ -12,7 +12,7 @@ type glob0, glob1; #define adrx0 (E0[x0]) #define regx0 (p0[x0]) -#define E1 ((type *)11111111) +#define E1 ((type *)(11111111 & ~(__alignof__ (type) - 1))) #define reg1 r1 #define indreg1 (*p1) #define imm1 33 diff --git a/gcc/testsuite/gcc.c-torture/unsorted/HIset.c b/gcc/testsuite/gcc.c-torture/unsorted/HIset.c index 8108fbb..163cb7c 100644 --- a/gcc/testsuite/gcc.c-torture/unsorted/HIset.c +++ b/gcc/testsuite/gcc.c-torture/unsorted/HIset.c @@ -8,7 +8,7 @@ #define adrx0 (E0[x0]) #define regx0 (p0[x0]) -#define E1 ((type *)11111111) +#define E1 ((type *)(11111111 & ~(__alignof__ (type) - 1))) #define reg1 r1 #define indreg1 (*p1) #define imm1 33 diff --git a/gcc/testsuite/gcc.c-torture/unsorted/SFset.c b/gcc/testsuite/gcc.c-torture/unsorted/SFset.c index ad3e41b..61e1bfa 100644 --- a/gcc/testsuite/gcc.c-torture/unsorted/SFset.c +++ b/gcc/testsuite/gcc.c-torture/unsorted/SFset.c @@ -8,7 +8,7 @@ #define adrx0 (E0[x0]) #define regx0 (p0[x0]) -#define E1 ((type *)11111111) +#define E1 ((type *)(11111111 & ~(__alignof__ (type) - 1))) #define reg1 r1 #define indreg1 (*p1) #define imm1 33 diff --git a/gcc/testsuite/gcc.c-torture/unsorted/SIcmp.c b/gcc/testsuite/gcc.c-torture/unsorted/SIcmp.c index 30e0739..4a9e0d5 100644 --- a/gcc/testsuite/gcc.c-torture/unsorted/SIcmp.c +++ b/gcc/testsuite/gcc.c-torture/unsorted/SIcmp.c @@ -12,7 +12,7 @@ type glob0, glob1; #define adrx0 (E0[x0]) #define regx0 (p0[x0]) -#define E1 ((type *)11111111) +#define E1 ((type *)(11111111 & ~(__alignof__ (type) - 1))) #define reg1 r1 #define indreg1 (*p1) #define imm1 33 diff --git a/gcc/testsuite/gcc.c-torture/unsorted/SIset.c b/gcc/testsuite/gcc.c-torture/unsorted/SIset.c index 74a51cd..5fb9357 100644 --- a/gcc/testsuite/gcc.c-torture/unsorted/SIset.c +++ b/gcc/testsuite/gcc.c-torture/unsorted/SIset.c @@ -8,7 +8,7 @@ #define adrx0 (E0[x0]) #define regx0 (p0[x0]) -#define E1 ((type *)11111111) +#define E1 ((type *)(11111111 & ~(__alignof__ (type) - 1))) #define reg1 r1 #define indreg1 (*p1) #define imm1 33 diff --git a/gcc/testsuite/gcc.c-torture/unsorted/UHIcmp.c b/gcc/testsuite/gcc.c-torture/unsorted/UHIcmp.c index 1e969e7..529e3a3 100644 --- a/gcc/testsuite/gcc.c-torture/unsorted/UHIcmp.c +++ b/gcc/testsuite/gcc.c-torture/unsorted/UHIcmp.c @@ -12,7 +12,7 @@ type glob0, glob1; #define adrx0 (E0[x0]) #define regx0 (p0[x0]) -#define E1 ((type *)11111111) +#define E1 ((type *)(11111111 & ~(__alignof__ (type) - 1))) #define reg1 r1 #define indreg1 (*p1) #define imm1 33 diff --git a/gcc/testsuite/gcc.c-torture/unsorted/USIcmp.c b/gcc/testsuite/gcc.c-torture/unsorted/USIcmp.c index e217526..69788a4 100644 --- a/gcc/testsuite/gcc.c-torture/unsorted/USIcmp.c +++ b/gcc/testsuite/gcc.c-torture/unsorted/USIcmp.c @@ -12,7 +12,7 @@ type glob0, glob1; #define adrx0 (E0[x0]) #define regx0 (p0[x0]) -#define E1 ((type *)11111111) +#define E1 ((type *)(11111111 & ~(__alignof__ (type) - 1))) #define reg1 r1 #define indreg1 (*p1) #define imm1 33 |