[PATCH] Arm: Don't define a label twice with two setjmps in a function.

Jim Grosbach grosbach at apple.com
Thu May 7 11:14:49 PDT 2015


> On May 7, 2015, at 11:10 AM, Matthias Braun <matze at braunis.de> wrote:
> 
> 
>> On May 7, 2015, at 7:37 AM, John Brawn <john.brawn at arm.com> wrote:
>> 
>>> Simply do what the comment in ARMAsmPrinter says and use directional labels.
>> 
>> 
>> Which comment would that be? I had a look in both ARMAsmPrinter.h and ARMAsmPrinter.cpp and could find no mention of directional labels.
> The comment immediately above the code sequence uses directional label syntax:
> 
>    // Two incoming args: GPR:$src, GPR:$val
>    // mov $val, pc
>    // adds $val, #7
>    // str $val, [$src, #4]
>    // movs r0, #0
>    // b 1f
>    // movs r0, #1
>    // 1:
> 


The regex in the testcase doesn’t seem to be looking for that form?  "[[LABEL:L[a-zA-Z0-9]+]]"



More information about the llvm-commits mailing list