<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><base href="x-msg://22457/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jul 27, 2012, at 9:04 AM, Sebastien DELDON-GNB <<a href="mailto:sebastien.deldon@st.com">sebastien.deldon@st.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="WordSection1" style="page: WordSection1; "><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Hi all,<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Does llc –march=thumb –mcpu=cortex-a9 enable generation of thumb2 code for armv7 ?</div></div></div></blockquote><br></div><div>That's how I usually do it.  Somewhere in the target description we associate a9 with -mattr=+thumb2.</div><div><br></div><div>There are plenty of other ways to get the same result, and it's all very confusing and opaque. Don't ask me what triples are valid. I usually verify that I have the right command line by staring at the disassembly until I'm convinced.</div><div><br></div><div>One good thing about llc (unlike other drivers... *cough*) is that the option values are actually discoverable!</div><div><br></div><div>llc --version gives you -march= values.</div><div>llc -mcpu=help</div><div>llc -mattr=help</div><div><br></div><div>-Andy</div></body></html>