r181468 - Fix test in two ways: remove incorrect comment (the intrinsic generated now

Eli Bendersky eliben at google.com
Wed May 8 13:58:01 PDT 2013


Author: eliben
Date: Wed May  8 15:58:01 2013
New Revision: 181468

URL: http://llvm.org/viewvc/llvm-project?rev=181468&view=rev
Log:
Fix test in two ways: remove incorrect comment (the intrinsic generated now
is of the llvm.sjlj.* flavore) and convert grep->FileCheck

Modified:
    cfe/trunk/test/CodeGen/2003-08-06-BuiltinSetjmpLongjmp.c

Modified: cfe/trunk/test/CodeGen/2003-08-06-BuiltinSetjmpLongjmp.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2003-08-06-BuiltinSetjmpLongjmp.c?rev=181468&r1=181467&r2=181468&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/2003-08-06-BuiltinSetjmpLongjmp.c (original)
+++ cfe/trunk/test/CodeGen/2003-08-06-BuiltinSetjmpLongjmp.c Wed May  8 15:58:01 2013
@@ -1,9 +1,10 @@
-/* RUN: %clang_cc1  %s -emit-llvm -o - | not grep __builtin_
+/* RUN: %clang_cc1  %s -emit-llvm -o - | FileCheck %s
  *
- * __builtin_longjmp/setjmp should get transformed into llvm.setjmp/longjmp 
- * just like explicit setjmp/longjmp calls are.
+ * __builtin_longjmp/setjmp should get transformed into intrinsics.
  */
 
+// CHECK-NOT: builtin_longjmp
+
 void jumpaway(int *ptr) {
   __builtin_longjmp(ptr,1);
 }





More information about the cfe-commits mailing list