https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105573
--- Comment #1 from Sam James <sam at gentoo dot org> ---
It occurs with -mcpu=native or -mcpu=niagara4 but not if I drop that.
```
$ for t in param target; do cmd="gcc -Q -O2 --help=$t"; diff -U0 <(LANG=C $cmd)
<(LANG=C $cmd -mcpu=niagara4); done
--- /dev/fd/63 2022-05-11 15:01:56.915134318 -0700
+++ /dev/fd/62 2022-05-11 15:01:56.915134318 -0700
@@ -85,2 +85,2 @@
- --param=l1-cache-size= 64
- --param=l2-cache-size= 512
+ --param=l1-cache-size= 16
+ --param=l2-cache-size= 128
@@ -223 +223 @@
- --param=simultaneous-prefetches= 3
+ --param=simultaneous-prefetches= 2
--- /dev/fd/63 2022-05-11 15:01:56.965136466 -0700
+++ /dev/fd/62 2022-05-11 15:01:56.975136897 -0700
@@ -6 +6 @@
- -mcbcond [disabled]
+ -mcbcond [enabled]
@@ -8 +8 @@
- -mcpu= v9
+ -mcpu= niagara4
@@ -16 +16 @@
- -mfmaf [disabled]
+ -mfmaf [enabled]
@@ -27 +27 @@
- -mpopc [disabled]
+ -mpopc [enabled]
@@ -36 +36 @@
- -mtune= v9
+ -mtune= niagara4
@@ -41,3 +41,3 @@
- -mvis [disabled]
- -mvis2 [disabled]
- -mvis3 [disabled]
+ -mvis [enabled]
+ -mvis2 [enabled]
+ -mvis3 [enabled]
```
It looks like -mvis3 is the trigger:
```
$ sparc64-unknown-linux-gnu-gcc -O2 -pipe -c loops.i -mvis3
[...]
during GIMPLE pass: isel
loops.i:3:33: internal compiler error: in gimple_expand_vec_cond_expr, at
gimple-isel.cc:267
3 | __attribute__((optimize("O3"))) UINT_sign() {
| ^~~~~~~~~
0x5c4b2f internal_error(char const*, ...)
???:0
0x5bc583 fancy_abort(char const*, int, char const*)
???:0
[...]
```