dawn-cmake/test/vk-gl-cts/graphicsfuzz/cov-combine-and-or-xor-gt-lt/0-opt.spvasm.expected.hlsl

50 lines
1.3 KiB
HLSL
Raw Normal View History

2021-07-23 13:10:12 +00:00
cbuffer cbuffer_x_6 : register(b1, space0) {
uint4 x_6[1];
};
static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f);
cbuffer cbuffer_x_8 : register(b0, space0) {
uint4 x_8[2];
};
void main_1() {
bool b = false;
b = true;
const float x_38 = asfloat(x_6[0].x);
const float x_40 = asfloat(x_6[0].y);
if ((x_38 > x_40)) {
const float x_45 = asfloat(x_6[0].x);
const float x_47 = asfloat(x_6[0].y);
if ((x_45 < x_47)) {
b = false;
}
}
if (b) {
const uint scalar_offset = ((16u * uint(0))) / 4;
const int x_10 = asint(x_8[scalar_offset / 4][scalar_offset % 4]);
const int x_11 = asint(x_8[1].x);
const int x_12 = asint(x_8[1].x);
const uint scalar_offset_1 = ((16u * uint(0))) / 4;
const int x_13 = asint(x_8[scalar_offset_1 / 4][scalar_offset_1 % 4]);
x_GLF_color = float4(float(x_10), float(x_11), float(x_12), float(x_13));
} else {
const int x_14 = asint(x_8[1].x);
const float x_65 = float(x_14);
x_GLF_color = float4(x_65, x_65, x_65, x_65);
}
return;
}
struct main_out {
float4 x_GLF_color_1;
};
struct tint_symbol {
float4 x_GLF_color_1 : SV_Target0;
};
tint_symbol main() {
main_1();
const main_out tint_symbol_1 = {x_GLF_color};
const tint_symbol tint_symbol_4 = {tint_symbol_1.x_GLF_color_1};
return tint_symbol_4;
}