
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
19 lines
526 B
C
19 lines
526 B
C
// REQUIRES: powerpc-registered-target
|
|
// RUN: %clang_cc1 -triple powerpc-apple-macosx10.4.0 -emit-llvm -o - %s -O2 -disable-llvm-optzns | FileCheck %s
|
|
|
|
int boolsize = sizeof(_Bool);
|
|
// CHECK: boolsize = global i32 4, align 4
|
|
|
|
void f(_Bool *x, _Bool *y) {
|
|
*x = *y;
|
|
}
|
|
|
|
// CHECK-LABEL: define void @f(
|
|
// CHECK: [[FROMMEM:%.*]] = load i32* %
|
|
// CHECK: [[BOOLVAL:%.*]] = trunc i32 [[FROMMEM]] to i1
|
|
// CHECK: [[TOMEM:%.*]] = zext i1 [[BOOLVAL]] to i32
|
|
// CHECK: store i32 [[TOMEM]]
|
|
// CHECK: ret void
|
|
|
|
// CHECK: i32 0, i32 2}
|