[cfe-commits] r167292 - /cfe/trunk/test/CodeGen/bitfield-promote.c

NAKAMURA Takumi geek4civic at gmail.com
Fri Nov 2 02:59:06 PDT 2012


Author: chapuni
Date: Fri Nov  2 04:59:06 2012
New Revision: 167292

URL: http://llvm.org/viewvc/llvm-project?rev=167292&view=rev
Log:
clang/test/CodeGen/bitfield-promote.c: FileCheck-ize.

Modified:
    cfe/trunk/test/CodeGen/bitfield-promote.c

Modified: cfe/trunk/test/CodeGen/bitfield-promote.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/bitfield-promote.c?rev=167292&r1=167291&r2=167292&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/bitfield-promote.c (original)
+++ cfe/trunk/test/CodeGen/bitfield-promote.c Fri Nov  2 04:59:06 2012
@@ -1,18 +1,22 @@
-// RUN: %clang -O3 -emit-llvm -S -o %t %s
-// RUN: grep 'ret i64 4294967292' %t | count 2
-// RUN: grep 'ret i64 -4' %t | count 1
+// RUN: %clang -O3 -emit-llvm -S -o - %s | FileCheck %s
 
 long long f0(void) {
  struct { unsigned f0 : 32; } x = { 18 };
  return (long long) (x.f0 - (int) 22);
 }
+// CHECK: @f0()
+// CHECK: ret i64 4294967292
 
 long long f1(void) {
  struct { unsigned f0 : 31; } x = { 18 };
  return (long long) (x.f0 - (int) 22);
 }
+// CHECK: @f1()
+// CHECK: ret i64 -4
 
 long long f2(void) {
  struct { unsigned f0     ; } x = { 18 };
  return (long long) (x.f0 - (int) 22);
 }
+// CHECK: @f2()
+// CHECK: ret i64 4294967292





More information about the cfe-commits mailing list