Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[arm-gnu] How to use IT instruction ?


  • To: arm-gnu@xxxxxxxxxxxxxxxx
  • Subject: [arm-gnu] How to use IT instruction ?
  • From: 林 玉田 <peter_lin_ab@xxxxxxxxxxxx>
  • Date: Tue, 20 May 2008 09:01:38 +0800 (CST)

Hi:
    When I compile the following segment code:
             NOP
             NOP
             ADD      r1,#1
             ADD      r1,#1
             
  Target1:
             CMP     r1,r2
             ITE     EQ         
            LDREQ   r3,[r4,r1]
             LDRNE   r3,[r4,r2]
             ADD     r6,r3
             NOP
             BX      r14
             NOP
             NOP
             NOP
             NOP
   
  Then I will got the following error message:
   
  ./asm/branch_tst.s:85: Error: condition required -- `ite EQ'
  ./asm/branch_tst.s:86: Error: thumb conditional instrunction not in IT block
  ./asm/branch_tst.s:87: Error: thumb conditional instrunction not in IT block
   
  Please help me how to solve it. Thanks

       付費才容量無上限?Yahoo!奇摩電子信箱2.0免費給你,信件永遠不必刪! - 馬上體驗!