annotate clang/test/CodeGen/libcalls-ld.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // llvm-gcc -O1+ should run simplify libcalls, O0 shouldn't
anatofuz
parents:
diff changeset
2 // and -fno-builtins shouldn't.
anatofuz
parents:
diff changeset
3 // -fno-math-errno should emit an llvm intrinsic, -fmath-errno should not.
anatofuz
parents:
diff changeset
4 // RUN: %clang_cc1 %s -emit-llvm -fno-math-errno -o - | grep {call.*exp2\\..*f}
anatofuz
parents:
diff changeset
5 // RUN: %clang_cc1 %s -emit-llvm -fmath-errno -o - | grep {call.*exp2l}
anatofuz
parents:
diff changeset
6 // RUN: %clang_cc1 %s -emit-llvm -O1 -o - | grep {call.*ldexp}
anatofuz
parents:
diff changeset
7 // RUN: %clang_cc1 %s -emit-llvm -O3 -fno-builtin -o - | grep {call.*exp2l}
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 // clang doesn't support this yet.
anatofuz
parents:
diff changeset
10 // XFAIL: *
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 // If this fails for you because your target doesn't support long double,
anatofuz
parents:
diff changeset
13 // please xfail the test.
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 long double exp2l(long double);
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 long double t4(unsigned char x) {
anatofuz
parents:
diff changeset
18 return exp2l(x);
anatofuz
parents:
diff changeset
19 }