Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 %s -emit-llvm -o - -triple powerpc64-linux-gnu | FileCheck %s
      2 // RUN: %clang_cc1 %s -emit-llvm -o - -triple powerpc64le-linux-gnu | FileCheck %s
      3 
      4 int test(long double x) { return __builtin_signbitl(x); }
      5 
      6 // CHECK-LABEL: define signext i32 @test(ppc_fp128 %x)
      7 // CHECK: bitcast ppc_fp128 %{{.*}} to i128
      8 // CHECK: trunc i128 %{{.*}} to i64
      9 // CHECK: icmp slt i64 %{{.*}}, 0
     10 // CHECK: zext i1 %{{.*}} to i32
     11 
     12