From fad06bc00afc0b1afe6160897598a5538b0df06e Mon Sep 17 00:00:00 2001 From: Chris B Date: Tue, 3 Dec 2024 11:33:28 -0600 Subject: [PATCH] Move the worst UB case to the end of the check so that it can be skipped --- test/Basic/idiv-edges.test | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/Basic/idiv-edges.test b/test/Basic/idiv-edges.test index a988d27..592370c 100644 --- a/test/Basic/idiv-edges.test +++ b/test/Basic/idiv-edges.test @@ -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 @@ -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.