<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Note: There were already a bunch of tests that do not check anything, e.g., <span style="font-family: Menlo; font-size: 11px;" class="">test_vcombine_s8.</span><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 25, 2014, at 9:57 AM, Quentin Colombet <<a href="mailto:qcolombet@apple.com" class="">qcolombet@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Hi Renato,</span><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Aug 25, 2014, at 5:23 AM, Renato Golin <<a href="mailto:renato.golin@linaro.org" class="">renato.golin@linaro.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">On 22 August 2014 01:27, Quentin Colombet <<a href="mailto:qcolombet@apple.com" class="">qcolombet@apple.com</a>> wrote:<br class=""><blockquote type="cite" class="">Author: qcolombet<br class="">Date: Thu Aug 21 19:27:52 2014<br class="">New Revision: 216249<br class=""><br class="">URL:<span class="Apple-converted-space"> </span><a href="http://llvm.org/viewvc/llvm-project?rev=216249&view=rev" class="">http://llvm.org/viewvc/llvm-project?rev=216249&view=rev</a><br class="">Log:<br class="">[test/CodeGen/ARM] Adpat test to match new codegen after r216236.<br class=""></blockquote><br class=""><br class="">Hi Quentin,<br class=""><br class="">I think removing the tests is not a good idea, since they're not<br class="">testing optimizations, but the correct lowering of the intrinsics.<br class=""><br class="">The right way of fixing this test is to avoid the optimization to<br class="">occur, by making the parameters extern variables or the like.<br class=""></div></blockquote><div class=""><br class=""></div><div class="">The problem is that the intrinsics at stake are just fancy moves, that can be coalesced. I do not think there is a way to prevent the optimization to happen other than disabling the optimization.</div><div class="">I can add the flag to do that, but I guess that wouldn’t be the right fix, since we could have another backend that LLVM.</div><div class="">If we do want to check the lowering of intrinsics, shouldn’t we drop Os from the run command?</div><div class=""><br class=""></div><div class="">To get a sense of what is different, here are a few examples,</div><div class=""><div class="" style="margin: 0px;"><div class="" style="margin: 0px;">_test_vdup_n_u32:</div><div class="" style="margin: 0px;"><span class="Apple-tab-span" style="white-space: pre;">  </span>vmov<span class="Apple-tab-span" style="white-space: pre;">      </span>d16, r0, r0</div><div class="" style="margin: 0px;"><span class="Apple-tab-span" style="white-space: pre;">      </span>vmov<span class="Apple-tab-span" style="white-space: pre;">      </span>r0, r1, d16</div><div class="" style="margin: 0px;"><span class="Apple-tab-span" style="white-space: pre;">      </span>bx<span class="Apple-tab-span" style="white-space: pre;">        </span>lr</div><div class="" style="margin: 0px;"><font face="Menlo" class=""><span class="" style="font-size: 11px;">=></span></font></div></div></div></div><div class=""><div class="">_test_vdup_n_u32:</div><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>mov<span class="Apple-tab-span" style="white-space: pre;">       </span>r1, r0</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">  </span>bx<span class="Apple-tab-span" style="white-space: pre;">        </span>lr</div><div class=""><br class=""></div><div class="">———</div><div class=""><div class="">_test_vcreate_s64:</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">  </span>vmov.32<span class="Apple-tab-span" style="white-space: pre;">   </span>d16[0], r0</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">      </span>vmov.32<span class="Apple-tab-span" style="white-space: pre;">   </span>d16[1], r1</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">      </span>vmov<span class="Apple-tab-span" style="white-space: pre;">      </span>r0, r1, d16</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">     </span>bx<span class="Apple-tab-span" style="white-space: pre;">        </span>lr</div><div class="">=></div><div class=""><div class="">_test_vcreate_s64:</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">     </span>bx<span class="Apple-tab-span" style="white-space: pre;">        </span>lr</div><div class=""><br class=""></div><div class="">———</div><div class=""><div class="">_test_vget_lane_u32:</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">        </span>vmov<span class="Apple-tab-span" style="white-space: pre;">      </span>d0, r0, r1</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">      </span>vmov<span class="Apple-tab-span" style="white-space: pre;">      </span>r0, s1</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">  </span>bx<span class="Apple-tab-span" style="white-space: pre;">        </span>lr</div><div class="">=></div><div class=""><div class="">_test_vget_lane_u32:</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">   </span>mov<span class="Apple-tab-span" style="white-space: pre;">       </span>r0, r1</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">  </span>bx<span class="Apple-tab-span" style="white-space: pre;">        </span>lr</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">-Quentin</div></div></div></div></div><blockquote type="cite" class=""><div class=""><br class="">cheers,<br class="">--renato<br class=""></div></blockquote></div><br class=""></div><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">cfe-commits mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:cfe-commits@cs.uiuc.edu" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">cfe-commits@cs.uiuc.edu</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a></div></blockquote></div><br class=""></body></html>