[LLVMbugs] [Bug 132] NEW: [C/C++] Complex division is not supported by the frontends

bugzilla-daemon at zion.cs.uiuc.edu bugzilla-daemon at zion.cs.uiuc.edu
Wed Nov 19 10:12:21 PST 2003


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=132

           Summary: [C/C++] Complex division is not supported by the
                    frontends
           Product: tools
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: sabre at nondot.org
        ReportedBy: sabre at nondot.org


This testcase:
---
int test() {
  __complex__ double C;
  double D;
  C / D;
}
---

Spews:
 <rdiv_expr 0x400212b8
    type <complex_type 0x40020c40 complex double
        type <real_type 0x40020a80 double DF
            size <integer_cst 0x4001b5c8 constant 64>
            unit size <integer_cst 0x4001b7bc constant 8>
            align 32 symtab 0 alias set -1 precision 64
            pointer_to_this <pointer_type 0x40229d20>>
        DC
        size <integer_cst 0x4001b94c constant 128>
        unit size <integer_cst 0x4001b974 constant 16>
        align 32 symtab 0 alias set -1>
   
    arg 0 <var_decl 0x40246d90 C type <complex_type 0x40020c40 complex double>
        used DC file test.c line 4 size <integer_cst 0x4001b94c 128> unit size
<integer_cst 0x4001b974 16>
        align 128 context <function_decl 0x40246bd0 test>
        chain <var_decl 0x40246e00 D type <real_type 0x40020a80 double>
            used DF file test.c line 5 size <integer_cst 0x4001b5c8 64> unit
size <integer_cst 0x4001b7bc 8>
            align 64 context <function_decl 0x40246bd0 test>>>
    arg 1 <complex_expr 0x400212a0 type <complex_type 0x40020c40 complex double>
        arg 0 <var_decl 0x40246e00 D>
        arg 1 <real_cst 0x40018400 type <real_type 0x40020a80 double>
            constant 0.0>>>
cc1: ../../gcc-3.4/gcc/llvm-expand.c:4975: llvm_expand_complex_binary_expr:
Assertion `0 && "Unknown complex expression!"' failed.

-Chris



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list