Skip to content

Commit b7b60b7

Browse files
committed
[rebranch][test] IRGen: Adjust some icmp checks that swapped arguments
1 parent df229ca commit b7b60b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/IRGen/integer-comparison.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
func f(_ x: Int, _ y: UInt32) -> Bool { x < y }
55
// CHECK-LABEL: define {{.*}} @"$s4main1fySbSi_s6UInt32VtF"(i64 %0, i32 %1)
66
// CHECK: %2 = zext i32 %1 to i64
7-
// CHECK-NEXT: %3 = icmp sgt i64 %2, %0
7+
// CHECK-NEXT: %3 = icmp slt i64 %0, %2
88
// CHECK-NEXT: ret i1 %3
99

1010
func g(_ x: UInt32, _ y: Int) -> Bool { x < y }
1111
// CHECK-LABEL: define {{.*}} @"$s4main1gySbs6UInt32V_SitF"(i32 %0, i64 %1)
1212
// CHECK: %2 = zext i32 %0 to i64
13-
// CHECK-NEXT: %3 = icmp slt i64 %2, %1
13+
// CHECK-NEXT: %3 = icmp sgt i64 %1, %2
1414
// CHECK-NEXT: ret i1 %3

0 commit comments

Comments
 (0)