Skip to content

Commit

Permalink
Workaround compiler error on GCC10 on AArch64 (JuliaLang#37481)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Sep 13, 2020
1 parent f2e70d9 commit f28defc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ccalltest.c
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,9 @@ typedef struct {

JL_DLLEXPORT struct_aa64_3 test_aa64_vec_2(struct_aa64_3 v1, struct_aa64_4 v2)
{
struct_aa64_3 x = {v1.v1 + vmovn_s16(v2.v1), v1.v2 - v2.v2};
// The cast below is to workaround GCC issue.
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96990
struct_aa64_3 x = {(int8x8_t)(v1.v1 + vmovn_s16(v2.v1)), (float32x2_t)(v1.v2 - v2.v2)};
return x;
}

Expand Down

0 comments on commit f28defc

Please sign in to comment.