Skip to content

Commit 4416c22

Browse files
committed
Merge branch 'main' of https://github.com/llvm/llvm-project
2 parents ed0530f + c11f91a commit 4416c22

File tree

66 files changed

+5326
-211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+5326
-211
lines changed

clang/docs/UsersManual.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2635,7 +2635,7 @@ violates the strict aliasing rules. For example:
26352635
26362636
Strict aliasing can be explicitly enabled with ``-fstrict-aliasing`` and
26372637
disabled with ``-fno-strict-aliasing``. ``clang-cl`` defaults to
2638-
``-fno-strict-aliasing``; see . Otherwise, Clang defaults to ``-fstrict-aliasing``.
2638+
``-fno-strict-aliasing``. Otherwise, Clang defaults to ``-fstrict-aliasing``.
26392639

26402640
C and C++ specify slightly different rules for strict aliasing. To improve
26412641
language interoperability, Clang allows two types to alias if either language

clang/lib/Sema/SemaChecking.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15955,6 +15955,7 @@ bool Sema::BuiltinElementwiseTernaryMath(
1595515955
return true;
1595615956
}
1595715957

15958+
TheCall->setArg(0, Args[0]);
1595815959
for (int I = 1; I < 3; ++I) {
1595915960
if (Args[0]->getType().getCanonicalType() !=
1596015961
Args[I]->getType().getCanonicalType()) {

clang/test/Sema/constant-builtins-vector.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,3 +957,7 @@ static_assert(fmaDouble1[0] == 5.0);
957957
static_assert(fmaDouble1[1] == 10.0);
958958
static_assert(fmaDouble1[2] == 17.0);
959959
static_assert(fmaDouble1[3] == 26.0);
960+
961+
constexpr float fmaArray[] = {2.0f, 2.0f, 2.0f, 2.0f};
962+
constexpr float fmaResult = __builtin_elementwise_fma(fmaArray[1], fmaArray[2], fmaArray[3]);
963+
static_assert(fmaResult == 6.0f, "");

libc/config/baremetal/aarch64/entrypoints.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,10 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
787787
libc.src.math.fminimum_numbf16
788788
libc.src.math.fromfpbf16
789789
libc.src.math.fromfpxbf16
790+
libc.src.math.nextafterbf16
791+
libc.src.math.nextdownbf16
792+
libc.src.math.nexttowardbf16
793+
libc.src.math.nextupbf16
790794
libc.src.math.roundbf16
791795
libc.src.math.roundevenbf16
792796
libc.src.math.truncbf16

libc/config/baremetal/arm/entrypoints.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,10 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
790790
libc.src.math.fminimum_numbf16
791791
libc.src.math.fromfpbf16
792792
libc.src.math.fromfpxbf16
793+
libc.src.math.nextafterbf16
794+
libc.src.math.nextdownbf16
795+
libc.src.math.nexttowardbf16
796+
libc.src.math.nextupbf16
793797
libc.src.math.roundbf16
794798
libc.src.math.roundevenbf16
795799
libc.src.math.truncbf16

libc/config/baremetal/riscv/entrypoints.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,10 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
790790
libc.src.math.fminimum_numbf16
791791
libc.src.math.fromfpbf16
792792
libc.src.math.fromfpxbf16
793+
libc.src.math.nextafterbf16
794+
libc.src.math.nextdownbf16
795+
libc.src.math.nexttowardbf16
796+
libc.src.math.nextupbf16
793797
libc.src.math.roundbf16
794798
libc.src.math.roundevenbf16
795799
libc.src.math.truncbf16

libc/config/darwin/aarch64/entrypoints.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,10 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
620620
libc.src.math.fminimum_numbf16
621621
libc.src.math.fromfpbf16
622622
libc.src.math.fromfpxbf16
623+
libc.src.math.nextafterbf16
624+
libc.src.math.nextdownbf16
625+
libc.src.math.nexttowardbf16
626+
libc.src.math.nextupbf16
623627
libc.src.math.roundbf16
624628
libc.src.math.roundevenbf16
625629
libc.src.math.truncbf16

libc/config/darwin/x86_64/entrypoints.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
263263
libc.src.math.fminimum_numbf16
264264
libc.src.math.fromfpbf16
265265
libc.src.math.fromfpxbf16
266+
libc.src.math.nextafterbf16
267+
libc.src.math.nextdownbf16
268+
libc.src.math.nexttowardbf16
269+
libc.src.math.nextupbf16
266270
libc.src.math.roundbf16
267271
libc.src.math.roundevenbf16
268272
libc.src.math.truncbf16

libc/config/gpu/amdgpu/entrypoints.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,10 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
646646
libc.src.math.fminimum_numbf16
647647
libc.src.math.fromfpbf16
648648
libc.src.math.fromfpxbf16
649+
libc.src.math.nextafterbf16
650+
libc.src.math.nextdownbf16
651+
libc.src.math.nexttowardbf16
652+
libc.src.math.nextupbf16
649653
libc.src.math.roundbf16
650654
libc.src.math.roundevenbf16
651655
libc.src.math.truncbf16

libc/config/gpu/nvptx/entrypoints.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,10 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
648648
libc.src.math.fminimum_numbf16
649649
libc.src.math.fromfpbf16
650650
libc.src.math.fromfpxbf16
651+
libc.src.math.nextafterbf16
652+
libc.src.math.nextdownbf16
653+
libc.src.math.nexttowardbf16
654+
libc.src.math.nextupbf16
651655
libc.src.math.roundbf16
652656
libc.src.math.roundevenbf16
653657
libc.src.math.truncbf16

0 commit comments

Comments
 (0)