Skip to content

Commit fad06bc

Browse files
committed
Move the worst UB case to the end of the check so that it can be skipped
1 parent 547321d commit fad06bc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/Basic/idiv-edges.test

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ DescriptorSets:
1919
- Access: ReadWrite
2020
Format: Int32
2121
RawSize: 4
22-
Data: [ 1, -1, 2147483647, -2147483648, 0]
22+
Data: [ 1, -1, 2147483647, 0, -2147483648]
2323
DirectXBinding:
2424
Register: 0
2525
Space: 0
@@ -57,4 +57,7 @@ DescriptorSets:
5757
# CHECK: Access: ReadWrite
5858
# CHECK-NEXT: Format: Int32
5959
# CHECK-NEXT: RawSize: 4
60-
# CHECK-NEXT: Data: [ -1, 1, -2147483647, 2147483647, 0 ]
60+
# CHECK-NEXT: Data: [ -1, 1, -2147483647, 0
61+
62+
# The last case here is definitly fun UB. -2147483648 / -1 on some GPUs returns
63+
# 2147483647 and on others returns -2147483648.

0 commit comments

Comments
 (0)