[cfe-commits] r162769 - in /cfe/trunk/test/CodeGen: exprs.c pr13704.c
Michael Liao
michael.liao at intel.com
Tue Aug 28 10:46:11 PDT 2012
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
+}
Removed: cfe/trunk/test/CodeGen/pr13704.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/pr13704.c?rev=162768&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/pr13704.c (original)
+++ cfe/trunk/test/CodeGen/pr13704.c (removed)
@@ -1,9 +0,0 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
-extern void foo(__int128);
-
-void bar() {
- __int128 x = 2;
- x--;
- foo(x);
-// CHECK: add nsw i128 %0, -1
-}
More information about the cfe-commits
mailing list