This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/42501] [4.4 only] Code bloating on operations with bit fields
- From: "sliao at google dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jan 2010 00:29:06 -0000
- Subject: [Bug middle-end/42501] [4.4 only] Code bloating on operations with bit fields
- References: <bug-42501-17572@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from sliao at google dot com 2010-01-08 00:29 -------
Yes, I generated the code from the trunk and got the same code as Ramana got,
except for the last line below. (Sorry that I filed this bug right before the
Christmas flight and couldn't check the trunk at that time.)
815c: b5f0 push {r4, r5, r6, r7, lr}
815e: 4b09 ldr r3, [pc, #36] ; (8184 <main+0x28>)
8160: 2200 movs r2, #0
8162: 681b ldr r3, [r3, #0]
8164: 2503 movs r5, #3
8166: e007 b.n 8178 <main+0x1c>
8168: c910 ldmia r1!, {r4}
816a: 009f lsls r7, r3, #2
816c: 6826 ldr r6, [r4, #0]
816e: 3201 adds r2, #1
8170: 402e ands r6, r5
8172: 433e orrs r6, r7
8174: 3301 adds r3, #1
8176: 6026 str r6, [r4, #0]
8178: 4282 cmp r2, r0
817a: dbf5 blt.n 8168 <main+0xc>
817c: 4a01 ldr r2, [pc, #4] ; (8184 <main+0x28>)
817e: 6013 str r3, [r2, #0]
8180: bdf0 pop {r4, r5, r6, r7, pc}
8182: 46c0 nop ; (mov r8, r8)
8184: 00011b04 .word 0x00011b04
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42501