[PATCH] D67606: Change signature of __builtin_rotateright64 back to unsigned
Karl-Johan Karlsson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 16 02:10:57 PDT 2019
Ka-Ka updated this revision to Diff 220294.
Ka-Ka added a comment.
Herald added subscribers: Jim, dylanmckay.
Update testcases according to review comment.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67606/new/
https://reviews.llvm.org/D67606
Files:
include/clang/Basic/Builtins.def
test/CodeGen/avr-builtins.c
Index: test/CodeGen/avr-builtins.c
===================================================================
--- test/CodeGen/avr-builtins.c
+++ 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.
+// RUN: %clang_cc1 -triple avr-unknown-unknown -Wconversion -verify %s
+// expected-no-diagnostics
+
unsigned char bitrev8(unsigned char data) {
return __builtin_bitreverse8(data);
}
Index: include/clang/Basic/Builtins.def
===================================================================
--- include/clang/Basic/Builtins.def
+++ include/clang/Basic/Builtins.def
@@ -461,7 +461,7 @@
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")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67606.220294.patch
Type: text/x-patch
Size: 1030 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190916/ea152737/attachment.bin>
More information about the cfe-commits
mailing list