Skip to content

Commit e1010f7

Browse files
committed
add overflow test, xfail failing tests
1 parent 5db9c09 commit e1010f7

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

test/Feature/HLSLLib/adduint64.test

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ RWStructuredBuffer<uint4> Out : register(u1);
77
void main() {
88
// vec4
99
Out[0] = AddUint64(In[0], In[0]);
10-
Out[1] = AddUint64(uint4(1, 0, 1, 256), uint4(1, 0, 1, 256));
1110

1211
// vec2
1312
uint4 Tmp = {AddUint64(In[1].xy, In[1].xy), AddUint64(In[1].zw, In[1].zw)};
14-
Out[2] = Tmp;
13+
Out[1] = Tmp;
1514
uint4 Tmp2 = {AddUint64(In[2].xy, In[2].xy), AddUint64(In[2].zw, In[2].zw)};
16-
Out[3] = Tmp2;
15+
Out[2] = Tmp2;
16+
Out[3].xy = AddUint64(uint2(0xffffffff, 0xffffffff), uint2(1, 0)); // overflow test
1717
}
1818

1919
//--- pipeline.yaml
@@ -36,8 +36,8 @@ Buffers:
3636
- Name: ExpectedOut # The result we expect
3737
Format: UInt32
3838
Stride: 16
39-
Data: [ 2, 0, 2, 512, 2, 0, 2, 512, 20000, 20002, 0, 3, 0xfffffffe, 0xfffffffe, 0xfffffffe, 0xffffffff ]
40-
# 2, 0, 2, 512, 2, 0, 2, 512, 20000, 20002, 0, 3, 4294967294, 4294967294, 4294967294, 4294967295
39+
Data: [ 2, 0, 2, 512, 20000, 20002, 0, 3, 0xfffffffe, 0xfffffffe, 0xfffffffe, 0xffffffff, 0, 0, 0, 0 ] # Last two are filler
40+
# 2, 0, 2, 512, 20000, 20002, 0, 3, 4294967294, 4294967294, 4294967294, 4294967295, 0, 0, 0, 0
4141
Results:
4242
- Result: Test1
4343
Rule: BufferExact
@@ -64,6 +64,15 @@ DescriptorSets:
6464

6565
# https://github.com/llvm/llvm-project/issues/149345
6666
# XFAIL: Clang-DirectX
67+
# XFAIL: Clang-Metal
68+
69+
# https://github.com/llvm/llvm-project/issues/149919
70+
# XFAIL: Clang-Vulkan
71+
72+
# https://github.com/llvm/offload-test-suite/issues/292
73+
# XFAIL: DXC-Metal
74+
75+
# UNSUPPORTED: DXC-Vulkan
6776

6877
# RUN: split-file %s %t
6978
# RUN: %dxc_target -T cs_6_5 -Fo %t.o %t/source.hlsl

0 commit comments

Comments
 (0)