Skip to content

Commit

Permalink
Move the worst UB case to the end of the check so that it can be skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
llvm-beanz committed Dec 3, 2024
1 parent 547321d commit fad06bc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/Basic/idiv-edges.test
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ DescriptorSets:
- Access: ReadWrite
Format: Int32
RawSize: 4
Data: [ 1, -1, 2147483647, -2147483648, 0]
Data: [ 1, -1, 2147483647, 0, -2147483648]
DirectXBinding:
Register: 0
Space: 0
Expand Down Expand Up @@ -57,4 +57,7 @@ DescriptorSets:
# CHECK: Access: ReadWrite
# CHECK-NEXT: Format: Int32
# CHECK-NEXT: RawSize: 4
# CHECK-NEXT: Data: [ -1, 1, -2147483647, 2147483647, 0 ]
# CHECK-NEXT: Data: [ -1, 1, -2147483647, 0

# The last case here is definitly fun UB. -2147483648 / -1 on some GPUs returns
# 2147483647 and on others returns -2147483648.

0 comments on commit fad06bc

Please sign in to comment.