<HTML><HEAD><TITLE>Samsung Enterprise Portal mySingle</TITLE>
<META content=IE=5 http-equiv=X-UA-Compatible>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE id=mysingle_style type=text/css>P {
MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt; FONT-FAMILY: Arial, arial; MARGIN-TOP: 5px
}
TD {
MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt; FONT-FAMILY: Arial, arial; MARGIN-TOP: 5px
}
LI {
MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt; FONT-FAMILY: Arial, arial; MARGIN-TOP: 5px
}
BODY {
FONT-SIZE: 9pt; FONT-FAMILY: Arial, arial; MARGIN: 10px; LINE-HEIGHT: 1.4
}
</STYLE>
<META name=GENERATOR content=ActiveSquare></HEAD>
<BODY>
<META name=GENERATOR content=ActiveSquare>
<P>Hi,</P>
<P> </P>
<P>For the following test:</P>
<P>int (*indirect_func)();</P>
<P>int indirect_call()<BR>{<BR> return indirect_func();<BR>}</P>
<P> </P>
<P>when generating the assembly with clang-3.5, for -march=armv5te, there is a difference in the assemblies generated with O0 and O1:</P>
<P> </P>
<P>In the assembly generated with O0, we are getting the "blx" instruction whereas with O1 we get "bx" (in 3.4.2 we used to get "blx" for both O0 and O1). </P>
<P> </P>
<P>Is this because of this patch: [llvm] r214959 - ARM: do not generate BLX instructions on Cortex-M CPUs</P>
<P>Or I am missing something.</P>
<P> </P>
<P>Thanks,</P>
<P>Mayur</P>
<H2 tabIndex=-1 id=:3gi class=hP> </H2><!--SP:mayur.p--><!--mayur.p:EP-->
<P> </P></BODY></HTML><img src='http://ext.samsung.net/mailcheck/SeenTimeChecker?do=e3e1a57eba32dd3d704a2e0b00311e332e8c5dc67bebec10f294c62af3385af4958dbbabe087ac9c0029dc535ebebcd3326bbdfb2ea96a2fcf878f9a26ce15a0' border=0 width=0 height=0 style='display:none'>