[cfe-commits] r83581 - /cfe/trunk/test/CodeGen/const-init.c

Daniel Dunbar daniel at zuster.org
Sun Oct 25 14:11:33 PDT 2009


Wouldn't a better fix be to change LLVM's IR printer to have the
output match on all platforms? This issue will show up in droves once
someone starts to care about the LLVM tests themselves working on
Windows.

 - Daniel

On Thu, Oct 8, 2009 at 2:57 PM, Mike Stump <mrs at apple.com> wrote:
> Author: mrs
> Date: Thu Oct  8 16:57:41 2009
> New Revision: 83581
>
> URL: http://llvm.org/viewvc/llvm-project?rev=83581&view=rev
> Log:
> In VC++, the *printf functions put an extra "0" in the exponent part
> of a floating point number.  This add regular expressions to account
> for this.  Patch by John Thompson.
>
> Modified:
>    cfe/trunk/test/CodeGen/const-init.c
>
> Modified: cfe/trunk/test/CodeGen/const-init.c
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/const-init.c?rev=83581&r1=83580&r2=83581&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGen/const-init.c (original)
> +++ cfe/trunk/test/CodeGen/const-init.c Thu Oct  8 16:57:41 2009
> @@ -22,21 +22,21 @@
>
>  int g0 = (int)(&(((union s2 *) 0)->f0.f0) - 0);
>
> -// CHECK: @g1x = global {{%.}} { double 1.000000e+00, double 0.000000e+00 }
> +// CHECK: @g1x = global {{%.}} { double 1.000000e+00{{[0]*}}, double 0.000000e+00{{[0]*}} }
>  _Complex double g1x = 1.0f;
> -// CHECK: @g1y = global {{%.}} { double 0.000000e+00, double 1.000000e+00 }
> +// CHECK: @g1y = global {{%.}} { double 0.000000e+00{{[0]*}}, double 1.000000e+00{{[0]*}} }
>  _Complex double g1y = 1.0fi;
>  // CHECK: @g1 = global {{%.}} { i8 1, i8 10 }
>  _Complex char g1 = (char) 1 + (char) 10 * 1i;
>  // CHECK: @g2 = global %2 { i32 1, i32 10 }
>  _Complex int g2 = 1 + 10i;
> -// CHECK: @g3 = global {{%.}} { float 1.000000e+00, float 1.000000e+01 }
> +// CHECK: @g3 = global {{%.}} { float 1.000000e+00{{[0]*}}, float 1.000000e+0{{[0]*}}1 }
>  _Complex float g3 = 1.0 + 10.0i;
> -// CHECK: @g4 = global {{%.}} { double 1.000000e+00, double 1.000000e+01 }
> +// CHECK: @g4 = global {{%.}} { double 1.000000e+00{{[0]*}}, double 1.000000e+0{{[0]*}}1 }
>  _Complex double g4 = 1.0 + 10.0i;
>  // CHECK: @g5 = global %2 zeroinitializer
>  _Complex int g5 = (2 + 3i) == (5 + 7i);
> -// CHECK: @g6 = global {{%.}} { double -1.100000e+01, double 2.900000e+01 }
> +// CHECK: @g6 = global {{%.}} { double -1.100000e+0{{[0]*}}1, double 2.900000e+0{{[0]*}}1 }
>  _Complex double g6 = (2.0 + 3.0i) * (5.0 + 7.0i);
>  // CHECK: @g7 = global i32 1
>  int g7 = (2 + 3i) * (5 + 7i) == (-11 + 29i);
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>




More information about the cfe-commits mailing list