Issue 149380
Summary [AArch64] ORRv: Bad machine code: Using an undefined physical register
Labels backend:AArch64
Assignees
Reporter sjoerdmeijer
    For a build with expensive checks enabled, this input:

```
#include <algorithm>
unsigned short a;
void g(int b, unsigned long long c[][5], unsigned long long d[]) {
  for (short e = 0; e < (short)b; e += 3)
    for (short f = 0; f < 15; f += 2)
      a = std::min(a, (unsigned short)(signed char)std::max(d[e], c[f][f]));
}
```

compiled with `clang++  -Ofast -mcpu=grace`, runs into this error:

```
*** Bad machine code: Using an undefined physical register ***
- function:    _Z1giPA5_yPy
- basic block: %bb.13 vector.body (0xaaaab3961410)
- instruction: $q10 = ORRv16i8 $q3, killed $q3
- operand 2:   killed $q3
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to