Skip to content
Snippets Groups Projects
Select Git revision
  • a81947957f74974b97bed04687700000b31b09d9
  • inf4_40 default protected
2 results

SemaChecking.cpp

  • Oleg Ranevskyy's avatar
    a8194795
    [ARM] Fix sema check of ARM special register names · a8194795
    Oleg Ranevskyy authored
    Summary:
    This is a simple sema check patch for arguments of `__builtin_arm_rsr` and the related builtins, which currently do not allow special registers with indexes >7.
    
    Some of the possible register name formats these builtins accept are:
    ```
    {c}p<coprocessor>:<op1>:c<CRn>:c<CRm>:<op2>
    ```
    ```
    o0:op1:CRn:CRm:op2
    ```
    where `op1` / `op2` are integers in the range [0, 7] and `CRn` / `CRm` are integers in the range [0, 15].
    
    The current sema check does not allow `CRn` > 7 and accepts `op2` up to 15.
    
    Reviewers: LukeCheeseman, rengolin
    
    Subscribers: asl, aemerson, rengolin, cfe-commits
    
    Differential Revision: https://reviews.llvm.org/D26464
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287378 91177308-0d34-0410-b5e6-96231b3b80d8
    a8194795
    History
    [ARM] Fix sema check of ARM special register names
    Oleg Ranevskyy authored
    Summary:
    This is a simple sema check patch for arguments of `__builtin_arm_rsr` and the related builtins, which currently do not allow special registers with indexes >7.
    
    Some of the possible register name formats these builtins accept are:
    ```
    {c}p<coprocessor>:<op1>:c<CRn>:c<CRm>:<op2>
    ```
    ```
    o0:op1:CRn:CRm:op2
    ```
    where `op1` / `op2` are integers in the range [0, 7] and `CRn` / `CRm` are integers in the range [0, 15].
    
    The current sema check does not allow `CRn` > 7 and accepts `op2` up to 15.
    
    Reviewers: LukeCheeseman, rengolin
    
    Subscribers: asl, aemerson, rengolin, cfe-commits
    
    Differential Revision: https://reviews.llvm.org/D26464
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287378 91177308-0d34-0410-b5e6-96231b3b80d8