#14 Shoter bit test

closed
nobody
None
5
2003-07-10
2001-12-12
Anonymous
No

There is code in the h8300 gcc to do an optimised
bit test like

btst #n,mem
brnz bit_n_was_set

but instead the longer
mov mem,r
and #(1<<n),r
bnz bit_n_was_set

Why is the longer code used?

Discussion

  • Shrinivas Atre

    Shrinivas Atre - 2002-04-29

    Logged In: YES
    user_id=386441

    Do you have a test case for this ? What compilation options
    you have used ?

     
  • Kazu Hirata

    Kazu Hirata - 2003-07-10

    Logged In: YES
    user_id=189502

    No testcase submitted.

     
  • Kazu Hirata

    Kazu Hirata - 2003-07-10
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks