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
Differential D67606
Change signature of __builtin_rotateright64 back to unsigned Ka-Ka on Sep 16 2019, 1:09 AM. Authored by
Details
The signature of __builtin_rotateright64 was by misstake changed from This fixes pr43309
Diff Detail
Event TimelineComment Actions A simpler way to test this might be to check for conversion warnings in the existing clang/test/CodeGen/avr-builtins.c test, for example as below. I think that's better since it covers more of the signatures, e.g. the rotateleft ones too. diff --git a/clang/test/CodeGen/avr-builtins.c b/clang/test/CodeGen/avr-builtins.c index cbba6b2f2a2..0d9ce91ad69 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. +// RUN: %clang_cc1 -triple avr-unknown-unknown -Wconversion -verify %s +// expected-no-diagnostics + unsigned char bitrev8(unsigned char data) { return __builtin_bitreverse8(data); } Comment Actions Looks good to me! (with comment)
|
Sorry, I didn't put this in my example, but maybe also mention the Bug number here.