Home | History | Annotate | Download | only in CodeGen
      1 // REQUIRES: powerpc-registered-target
      2 // RUN: %clang_cc1 -triple powerpc-apple-macosx10.4.0 -emit-llvm -o - %s -O2 -disable-llvm-optzns | FileCheck %s
      3 
      4 int boolsize = sizeof(_Bool);
      5 // CHECK: boolsize = global i32 4, align 4
      6 
      7 void f(_Bool *x, _Bool *y) {
      8   *x = *y;
      9 }
     10 
     11 // CHECK-LABEL: define void @f(
     12 // CHECK: [[FROMMEM:%.*]] = load i32* %
     13 // CHECK: [[BOOLVAL:%.*]] = trunc i32 [[FROMMEM]] to i1
     14 // CHECK: [[TOMEM:%.*]] = zext i1 [[BOOLVAL]] to i32
     15 // CHECK: store i32 [[TOMEM]]
     16 // CHECK: ret void
     17 
     18 // CHECK: metadata !{i32 0, i32 2}
     19