Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 874071 Details for
Bug 916860
sys-devel/gcc-14.0.0_pre20231029: ICE when building mesa-23.2.1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
reduced self-contained source
nir_opt_idiv_const.c.i (text/plain), 1.18 KB, created by
Kostadin Shishmanov
on 2023-11-04 17:08:20 UTC
(
hide
)
Description:
reduced self-contained source
Filename:
MIME Type:
Creator:
Kostadin Shishmanov
Created:
2023-11-04 17:08:20 UTC
Size:
1.18 KB
patch
obsolete
>nir_opt_idiv_const_instr_alu_1, nir_opt_idiv_const_instr_alu_3_1_0_1_1_1; >util_is_power_of_two_or_zero64(long long v) { return (v & v - 1) == 0; } >typedef enum { nir_op_imod } nir_ssa_def; >typedef struct { > int parent_if; > int reg; > union { > nir_ssa_def ssa > }; > _Bool is_ssa >} nir_src; >typedef struct { > nir_src src; > char swizzle[] >} nir_alu_src; >typedef struct { > int dest; > nir_alu_src src[] >} nir_alu_instr; >nir_swizzle(nir_ssa_def src, unsigned *swiz, unsigned num_components) { > nir_alu_src alu_src; > nir_src __trans_tmp_1; > { > nir_src src = {}; > __trans_tmp_1 = src; > } > alu_src.src = __trans_tmp_1; > _Bool is_identity_swizzle = 1; > for (unsigned i = 0; i < num_components; i++) > if (swiz[i]) > is_identity_swizzle = 0; > if (src && is_identity_swizzle) > nir_src_bit_size(alu_src); >} >nir_opt_idiv_const_instr() { > nir_alu_instr *alu = nir_instr_as_alu(); > for (unsigned comp;; comp++) { > nir_swizzle(alu->src[0].src.ssa, alu->src[0].swizzle[comp], 1); > long long d; > d &= nir_opt_idiv_const_instr_alu_3_1_0_1_1_1; > switch (nir_opt_idiv_const_instr_alu_1) > case nir_op_imod: > if (util_is_power_of_two_or_zero64(-d)) > nir_imm_intN_t(); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 916860
:
874069
|
874070
| 874071