[all-commits] [llvm/llvm-project] 0b55a8: [flang] Fix intrinsic interface for DIMAG/DCONJG
    PeixinQiao via All-commits 
    all-commits at lists.llvm.org
       
    Thu Apr 14 06:35:56 PDT 2022
    
    
  
  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b55a8dc6fe81a9b3f8c67ec0b5192baa4bc80b8
      https://github.com/llvm/llvm-project/commit/0b55a8dc6fe81a9b3f8c67ec0b5192baa4bc80b8
  Author: PeixinQiao <qiaopeixin at huawei.com>
  Date:   2022-04-14 (Thu, 14 Apr 2022)
  Changed paths:
    M flang/lib/Evaluate/intrinsics.cpp
    A flang/test/Lower/Intrinsics/dconjg.f90
    A flang/test/Lower/Intrinsics/dimag.f90
    A flang/test/Lower/Intrinsics/dreal.f90
    A flang/test/Semantics/intrinsics01.f90
    M flang/unittests/Evaluate/intrinsics.cpp
  Log Message:
  -----------
  [flang] Fix intrinsic interface for DIMAG/DCONJG
The intrinsics DREAL, DIMAG, and DCONJG are from Fortran 77 extensions.
For DREAL, the type of argument is extended to any complex. For DIMAG
and DCONJG, the type of argument for them should be complex(8). For DIMAG,
the result type should be real(8). For DCONJG, the result type should be
complex(8). Fix the intrinsic interface for them and add test cases for
the semantic checks and the lowering.
Reviewed By: Jean Perier
Differential Revision: https://reviews.llvm.org/D123459
    
    
More information about the All-commits
mailing list