https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110880

            Bug ID: 110880
           Summary: [14 Regression] aarch64 ICE on highway-1.0.5: internal
                    compiler error: output_operand: incompatible floating
                    point / vector register operand for '%s'
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: slyfox at gcc dot gnu.org
  Target Milestone: ---

Don't know if a duplicate of PR109977 or not. FIling just in case. Initially
observed ICE on `highway-1.0.5` against gcc r14-2930-g0460c122162793.

Extracted small example as:

// $ cat math_test.cc.cc
void CopyBytes(bool *from, float *to) { __builtin_memcpy(to, from, 4); }
int TestMath_d;
typedef __Float32x2_t float32x2_t;
struct Vec128 {
  Vec128(float32x2_t raw) : raw_(raw) {}
  float32x2_t raw_;
};
Vec128 NativeSet(float t) {
  float32x2_t __trans_tmp_2{t, t};
  return __trans_tmp_2;
}
Vec128 Set(float t) { return NativeSet(t); }
float BitCast_out;
bool TestMath_in[4];
void TestMath(int fxN(int, Vec128 &)) {
  CopyBytes(TestMath_in, &BitCast_out);
  Vec128 __trans_tmp_1 = Set(BitCast_out);
  fxN(TestMath_d, __trans_tmp_1);
}

$
aarch64-unknown-linux-gnu-stage-final-gcc-wrapper-14.0.0/bin/aarch64-unknown-linux-gnu-g++
-O2  -c math_test.cc.cc -o bug.o -O1

during RTL pass: final
math_test.cc.cc: In function 'void TestMath(int (*)(int, Vec128&))':
math_test.cc.cc:19:1: internal compiler error: output_operand: incompatible
floating point / vector register operand for '%s'
   19 | }
      | ^
0x1c13274 diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char
const*, __va_list_tag (*) [1], diagnostic_t)
        ???:0
0x1c137e7 internal_error(char const*, ...)
        ???:0
0xb8b410 output_operand_lossage(char const*, ...)
        ???:0
0xb8b5d1 output_operand(rtx_def*, int)
        ???:0
0xb8c23d output_asm_insn(char const*, rtx_def**) [clone .part.0]
        ???:0
0xb8d564 final_scan_insn_1(rtx_insn*, _IO_FILE*, int, int, int*) [clone
.isra.0]
        ???:0
0xb8d99b final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
        ???:0
0xb8dc37 final_1(rtx_insn*, _IO_FILE*, int, int)
        ???:0
0xb8e496 (anonymous namespace)::pass_final::execute(function*)
        ???:0

Reply via email to