Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / PowerPC / ppc-signbit.c
blobbb07d861d11c81bef70a163eab9628cb429b63f7
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
4 int test(long double x) { return __builtin_signbitl(x); }
6 // CHECK-LABEL: define{{.*}} signext i32 @test(ppc_fp128 noundef %x)
7 // CHECK: trunc i128 %{{.*}} to i64
8 // CHECK: icmp slt i64 %{{.*}}, 0
9 // CHECK: zext i1 %{{.*}} to i32