<div dir="ltr">Disabled for aarch64: <a href="https://reviews.llvm.org/rG2022e2fcd05c">https://reviews.llvm.org/rG2022e2fcd05c</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 25, 2021 at 7:15 AM Adhemerval Zanella <<a href="mailto:adhemerval.zanella@linaro.org" target="_blank">adhemerval.zanella@linaro.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On 22/11/2021 18:19, Matt Morehouse via llvm-commits wrote:<br>
> <br>
> Author: Matt Morehouse<br>
> Date: 2021-11-22T13:19:11-08:00<br>
> New Revision: 615ecd8afc43b3ac5aa54053bff26002a0ce7ce6<br>
> <br>
> URL: <a href="https://github.com/llvm/llvm-project/commit/615ecd8afc43b3ac5aa54053bff26002a0ce7ce6" rel="noreferrer" target="_blank">https://github.com/llvm/llvm-project/commit/615ecd8afc43b3ac5aa54053bff26002a0ce7ce6</a><br>
> DIFF: <a href="https://github.com/llvm/llvm-project/commit/615ecd8afc43b3ac5aa54053bff26002a0ce7ce6.diff" rel="noreferrer" target="_blank">https://github.com/llvm/llvm-project/commit/615ecd8afc43b3ac5aa54053bff26002a0ce7ce6.diff</a><br>
> <br>
> LOG: [HWASan] Move LTO test to separate file.<br>
> <br>
> The test fails on Android for an unknown reason but is still worth<br>
> having for x86.<br>
> <br>
> Added: <br>
>     compiler-rt/test/hwasan/TestCases/lto.c<br>
> <br>
> Modified: <br>
>     compiler-rt/test/hwasan/TestCases/global.c<br>
> <br>
> Removed: <br>
>     <br>
> > <br>
> ################################################################################<br>
> diff  --git a/compiler-rt/test/hwasan/TestCases/global.c b/compiler-rt/test/hwasan/TestCases/global.c<br>
> index 45413fe48c5b..23fefd0ecceb 100644<br>
> --- a/compiler-rt/test/hwasan/TestCases/global.c<br>
> +++ b/compiler-rt/test/hwasan/TestCases/global.c<br>
<br>
This tests is currently failing on aarch64 SVE bots [1] [2].  I haven not<br>
investigate why, do we need to disable it for aarch64 as well?<br>
<br>
[1] <a href="https://lab.llvm.org/buildbot/#/builders/198/builds/410" rel="noreferrer" target="_blank">https://lab.llvm.org/buildbot/#/builders/198/builds/410</a><br>
[2] <a href="https://lab.llvm.org/buildbot/#/builders/176/builds/1090" rel="noreferrer" target="_blank">https://lab.llvm.org/buildbot/#/builders/176/builds/1090</a><br>
<br>
> @@ -5,10 +5,6 @@<br>
>  // RUN: not %run %t -1 2>&1 | FileCheck --check-prefixes=CHECK,LSYM %s<br>
>  // RUN: not %env_hwasan_opts=symbolize=0 %run %t -1 2>&1 | FileCheck --check-prefixes=CHECK,LNOSYM %s<br>
>  <br>
> -// Test with LTO, since it invokes the integrated assembler separately.<br>
> -// RUN: %clang_hwasan -flto %s -o %t<br>
> -// RUN: not %run %t 1 2>&1 | FileCheck --check-prefixes=CHECK,RSYM %s<br>
> -<br>
>  // Test with and without optimizations, with and without PIC, since <br>
> diff erent<br>
>  // backend passes run depending on these flags.<br>
>  // RUN: %clang_hwasan -fno-pic %s -o %t<br>
> <br>
> diff  --git a/compiler-rt/test/hwasan/TestCases/lto.c b/compiler-rt/test/hwasan/TestCases/lto.c<br>
> new file mode 100644<br>
> index 000000000000..6a83a32ff1fb<br>
> --- /dev/null<br>
> +++ b/compiler-rt/test/hwasan/TestCases/lto.c<br>
> @@ -0,0 +1,17 @@<br>
> +// Test globals with LTO, since it invokes the integrated assembler separately.<br>
> +// RUN: %clang_hwasan -flto %s -o %t<br>
> +// RUN: not %run %t 1 2>&1 | FileCheck %s<br>
> +<br>
> +// REQUIRES: pointer-tagging<br>
> +// UNSUPPORTED: android<br>
> +<br>
> +#include <stdlib.h><br>
> +<br>
> +int x = 1;<br>
> +<br>
> +int main(int argc, char **argv) {<br>
> +  // CHECK: Cause: global-overflow<br>
> +  // CHECK: is located 0 bytes to the right of 4-byte global variable x {{.*}} in {{.*}}lto.c.tmp<br>
> +  // CHECK-NOT: can not describe<br>
> +  (&x)[atoi(argv[1])] = 1;<br>
> +}<br>
> <br>
> <br>
>         <br>
> _______________________________________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
> <br>
</blockquote></div>