aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-11-02 09:59:06 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-11-02 09:59:06 +0000
commit36db2d87163fd3ec422a5d723c3f466bb410288b (patch)
tree22dbf61073e4305fa464b401124cf239688991c5
parent92f9bb3e7d9cec718f4614f1a9e9084ce8a02565 (diff)
clang/test/CodeGen/bitfield-promote.c: FileCheck-ize.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167292 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/bitfield-promote.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/CodeGen/bitfield-promote.c b/test/CodeGen/bitfield-promote.c
index 4c3292c48f..93aaa9d8b7 100644
--- a/test/CodeGen/bitfield-promote.c
+++ b/test/CodeGen/bitfield-promote.c
@@ -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