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