diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:04:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:04:05 +0000 |
commit | 676fbe8105eeb6ff4bb2ed261cb212fcfdbe7b63 (patch) | |
tree | 02a1ac369cb734d0abfa5000dd86e5b7797e6a74 /test/CodeGen/bool_test.c | |
parent | c7e70c433efc6953dc3888b9fbf9f3512d7da2b0 (diff) |
Diffstat (limited to 'test/CodeGen/bool_test.c')
-rw-r--r-- | test/CodeGen/bool_test.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/CodeGen/bool_test.c b/test/CodeGen/bool_test.c index ead8854e284be..84c775cba4fb2 100644 --- a/test/CodeGen/bool_test.c +++ b/test/CodeGen/bool_test.c @@ -1,18 +1,18 @@ // REQUIRES: powerpc-registered-target -// RUN: %clang_cc1 -triple powerpc-apple-macosx10.4.0 -emit-llvm -o - %s -O2 -disable-llvm-passes | FileCheck %s +// RUN: %clang_cc1 -triple powerpc-unknown-linux-gnu -emit-llvm -o - %s -O2 -disable-llvm-passes | FileCheck %s int boolsize = sizeof(_Bool); -// CHECK: boolsize = global i32 4, align 4 +// CHECK: boolsize = global i32 1, align 4 void f(_Bool *x, _Bool *y) { *x = *y; } // CHECK-LABEL: define void @f( -// CHECK: [[FROMMEM:%.*]] = load i32, i32* % -// CHECK: [[BOOLVAL:%.*]] = trunc i32 [[FROMMEM]] to i1 -// CHECK: [[TOMEM:%.*]] = zext i1 [[BOOLVAL]] to i32 -// CHECK: store i32 [[TOMEM]] +// CHECK: [[FROMMEM:%.*]] = load i8, i8* % +// CHECK: [[BOOLVAL:%.*]] = trunc i8 [[FROMMEM]] to i1 +// CHECK: [[TOMEM:%.*]] = zext i1 [[BOOLVAL]] to i8 +// CHECK: store i8 [[TOMEM]] // CHECK: ret void -// CHECK: i32 0, i32 2} +// CHECK: i8 0, i8 2} |