We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3f4b90 commit f9cef9dCopy full SHA for f9cef9d
clang/test/CIR/CodeGen/builtin-signbit.c
@@ -30,3 +30,13 @@ void test_signbit_long_double(long double val) {
30
// LLVM: [[TMP1:%.*]] = bitcast x86_fp80 %{{.+}} to i80
31
// LLVM: [[TMP2:%.*]] = icmp slt i80 [[TMP1]], 0
32
}
33
+
34
+void test_signbit_long_double(long double val) {
35
+ // CIR: test_signbit_long_double
36
+ // LLVM: test_signbit_long_double
37
+ __builtin_signbitl(val);
38
+ // CIR: %{{.+}} = cir.signbit %{{.+}} : !cir.long_double<!cir.f80> -> !s32i
39
+ // LLVM: [[TMP1:%.*]] = bitcast x86_fp80 %{{.+}} to i80
40
+ // LLVM: [[TMP2:%.*]] = icmp slt i80 [[TMP1]], 0
41
+ // LLVM: %{{.+}} = zext i1 [[TMP2]] to i32
42
+}
0 commit comments