diff options
author | Hans Wennborg <hans@hanshq.net> | 2019-09-17 10:19:31 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2019-09-17 10:19:31 +0000 |
commit | 12f174e98c3514755b21db2f040544c0b2ed5f67 (patch) | |
tree | 6db53bcefff210ba81498255fd4ca4b66b2429dc | |
parent | 8972a4776da42d708b4273c5fae40c107f5e6904 (diff) | |
download | llvm-12f174e98c3514755b21db2f040544c0b2ed5f67.zip llvm-12f174e98c3514755b21db2f040544c0b2ed5f67.tar.gz llvm-12f174e98c3514755b21db2f040544c0b2ed5f67.tar.bz2 |
Merging r371969:llvmorg-9.0.0-rc6
------------------------------------------------------------------------
r371969 | karka | 2019-09-16 11:52:23 +0200 (Mon, 16 Sep 2019) | 13 lines
Change signature of __builtin_rotateright64 back to unsigned
The signature of __builtin_rotateright64 was by misstake changed from
unsigned to signed in r360863, this patch will change it back to
unsigned as intended.
This fixes pr43309
Reviewers: efriedma, hans
Reviewed By: hans
Differential Revision: https://reviews.llvm.org/D67606
------------------------------------------------------------------------
llvm-svn: 372100
-rw-r--r-- | clang/include/clang/Basic/Builtins.def | 2 | ||||
-rw-r--r-- | clang/test/CodeGen/avr-builtins.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/clang/include/clang/Basic/Builtins.def b/clang/include/clang/Basic/Builtins.def index 984e607..08c999a 100644 --- a/clang/include/clang/Basic/Builtins.def +++ b/clang/include/clang/Basic/Builtins.def @@ -440,7 +440,7 @@ BUILTIN(__builtin_rotateleft64, "UWiUWiUWi", "nc") BUILTIN(__builtin_rotateright8, "UcUcUc", "nc") BUILTIN(__builtin_rotateright16, "UsUsUs", "nc") BUILTIN(__builtin_rotateright32, "UZiUZiUZi", "nc") -BUILTIN(__builtin_rotateright64, "UWiUWiWi", "nc") +BUILTIN(__builtin_rotateright64, "UWiUWiUWi", "nc") // Random GCC builtins BUILTIN(__builtin_constant_p, "i.", "nctu") diff --git a/clang/test/CodeGen/avr-builtins.c b/clang/test/CodeGen/avr-builtins.c index cbba6b2..8fa983a 100644 --- a/clang/test/CodeGen/avr-builtins.c +++ b/clang/test/CodeGen/avr-builtins.c @@ -1,5 +1,9 @@ // RUN: %clang_cc1 -triple avr-unknown-unknown -emit-llvm -o - %s | FileCheck %s +// Check that the parameter types match. This verifies pr43309. +// RUN: %clang_cc1 -triple avr-unknown-unknown -Wconversion -verify %s +// expected-no-diagnostics + unsigned char bitrev8(unsigned char data) { return __builtin_bitreverse8(data); } |