[cfe-commits] r162769 - in /cfe/trunk/test/CodeGen: exprs.c pr13704.c

Matt Beaumont-Gay matthewbg at google.com
Tue Aug 28 11:12:43 PDT 2012


On Tue, Aug 28, 2012 at 10:46 AM, Michael Liao <michael.liao at intel.com> wrote:
> Author: hliao
> Date: Tue Aug 28 12:46:11 2012
> New Revision: 162769
>
> URL: http://llvm.org/viewvc/llvm-project?rev=162769&view=rev
> Log:
> Merge test case for PR13704 into exprs.c to reduce test cases
>
>
> Removed:
>     cfe/trunk/test/CodeGen/pr13704.c
> Modified:
>     cfe/trunk/test/CodeGen/exprs.c
>
> Modified: cfe/trunk/test/CodeGen/exprs.c
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/exprs.c?rev=162769&r1=162768&r2=162769&view=diff
> ==============================================================================
> --- cfe/trunk/test/CodeGen/exprs.c (original)
> +++ cfe/trunk/test/CodeGen/exprs.c Tue Aug 28 12:46:11 2012
> @@ -174,3 +174,13 @@
>   lbl:
>    ;
>  }
> +
> +// PR13704: negative increment in i128 is not preserved.
> +// CHECK: define void @f17()
> +void f17() {
> +  extern void extfunc(__int128);
> +  __int128 x = 2;
> +  x--;
> +  extfunc(x);
> +// CHECK: add nsw i128 %0, -1

As the buildbots have probably informed you, this fails in -Asserts
builds. Use a regex to match the first operand.

-Matt



More information about the cfe-commits mailing list