[rebranch][test] IRGen: Adjust icmp check that is now marked samesign

Per b7db403e701029c801fd990dceeb219de9fb800c (llvm-project).
This commit is contained in:
Anthony Latsis
2025-04-29 21:09:50 +01:00
parent 5344606789
commit df229ca665

View File

@@ -19,7 +19,7 @@ public func test(_ a: [Int], _ i: Int) -> Int {
// CHECK: [[SIZE_ADDR:%.*]] = getelementptr
// CHECK: [[SIZE:%.*]] = load i64, ptr [[SIZE_ADDR]]
// CHECK: [[C1:%.*]] = icmp ult i64 [[IDX]], [[SIZE]]
// CHECK: [[C1:%.*]] = icmp samesign ult i64 [[IDX]], [[SIZE]]
// CHECK: br i1 [[C1]], {{.*}}!annotation ![[ARRAY_INDEX_OUT_OF_BOUNDS]]