diff mbox

[ARM] : PR67880: Add test.

Message ID 5614CC24.7070706@st.com
State New
Headers show

Commit Message

Christian Bruel Oct. 7, 2015, 7:39 a.m. UTC
A regression test to check -fno-align-functions -O2 -mthumb

thanks

Comments

Jeff Law Oct. 7, 2015, 4:57 p.m. UTC | #1
On 10/07/2015 01:39 AM, Christian Bruel wrote:
> A regression test to check -fno-align-functions -O2 -mthumb
>
> thanks
>
> align4.patch
>
>
> 2015-09-29  Christian Bruel<christian.bruel@st.com>
>
> 	PR target/67880
> 	* gcc.target/arm/no-align.c: Likewise.
If this currently passes, then it's fine for the trunk.

If it needs your patch for 67745, then include it as part of the work to 
fix 67745.

jeff
Ramana Radhakrishnan Oct. 7, 2015, 9:05 p.m. UTC | #2
On Wed, Oct 7, 2015 at 5:57 PM, Jeff Law <law@redhat.com> wrote:
> On 10/07/2015 01:39 AM, Christian Bruel wrote:
>>
>> A regression test to check -fno-align-functions -O2 -mthumb
>>
>> thanks
>>
>> align4.patch
>>
>>
>> 2015-09-29  Christian Bruel<christian.bruel@st.com>
>>
>>         PR target/67880
>>         * gcc.target/arm/no-align.c: Likewise.
>
> If this currently passes, then it's fine for the trunk.
>
> If it needs your patch for 67745, then include it as part of the work to fix
> 67745.

To my mind this really reads like a dup of PR67745.


Ramana

>
> jeff
>
Christian Bruel Oct. 8, 2015, 7:35 a.m. UTC | #3
On 10/07/2015 11:05 PM, Ramana Radhakrishnan wrote:
> On Wed, Oct 7, 2015 at 5:57 PM, Jeff Law <law@redhat.com> wrote:
>> On 10/07/2015 01:39 AM, Christian Bruel wrote:
>>>
>>> A regression test to check -fno-align-functions -O2 -mthumb
>>>
>>> thanks
>>>
>>> align4.patch
>>>
>>>
>>> 2015-09-29  Christian Bruel<christian.bruel@st.com>
>>>
>>>          PR target/67880
>>>          * gcc.target/arm/no-align.c: Likewise.
>>
>> If this currently passes, then it's fine for the trunk.
>>
>> If it needs your patch for 67745, then include it as part of the work to fix
>> 67745.
>
> To my mind this really reads like a dup of PR67745.

Partially yes. I opened a different tracker because this test failed for 
a long time even without the use of attributes. It is fixed by the 
common subpatch (pr67745 1/2) and does not need (pr67745 2/2).

Never mind, the important thing is that it's been in the testsuite for 
tracking. I'll can go together after PR67745 patches if it's OK.

>
> Ramana
>
>>
>> jeff
>>
Jeff Law Oct. 9, 2015, 9:03 p.m. UTC | #4
On 10/08/2015 01:35 AM, Christian Bruel wrote:
>
>
> On 10/07/2015 11:05 PM, Ramana Radhakrishnan wrote:
>> On Wed, Oct 7, 2015 at 5:57 PM, Jeff Law <law@redhat.com> wrote:
>>> On 10/07/2015 01:39 AM, Christian Bruel wrote:
>>>>
>>>> A regression test to check -fno-align-functions -O2 -mthumb
>>>>
>>>> thanks
>>>>
>>>> align4.patch
>>>>
>>>>
>>>> 2015-09-29  Christian Bruel<christian.bruel@st.com>
>>>>
>>>>          PR target/67880
>>>>          * gcc.target/arm/no-align.c: Likewise.
>>>
>>> If this currently passes, then it's fine for the trunk.
>>>
>>> If it needs your patch for 67745, then include it as part of the work
>>> to fix
>>> 67745.
>>
>> To my mind this really reads like a dup of PR67745.
>
> Partially yes. I opened a different tracker because this test failed for
> a long time even without the use of attributes. It is fixed by the
> common subpatch (pr67745 1/2) and does not need (pr67745 2/2).
>
> Never mind, the important thing is that it's been in the testsuite for
> tracking. I'll can go together after PR67745 patches if it's OK.
Yea, let's bundle it in the 67745 patches.

jeff
diff mbox

Patch

2015-09-29  Christian Bruel  <christian.bruel@st.com>

	PR target/67880
	* gcc.target/arm/no-align.c: Likewise.

Index: gcc.target/arm/no-align.c
===================================================================
--- gcc.target/arm/no-align.c	(revision 0)
+++ gcc.target/arm/no-align.c	(working copy)
@@ -0,0 +1,12 @@ 
+/* PR target/67745
+   Verify that -mthumb code is not aligned.  */
+/* { dg-do compile } */
+/* { dg-options "-O2 -mthumb -fno-align-functions" }  */
+/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */
+
+void
+foo()
+{
+}
+
+/* { dg-final { scan-assembler-not ".align\[ \t]2" } } */