Skip to content

Commit 62663e7

Browse files
committed
Merge similar output checks in assembly-llvm/x86_64-cmp
1 parent 8b225c7 commit 62663e7

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

tests/assembly-llvm/x86_64-cmp.rs

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,21 @@ use std::intrinsics::three_way_compare;
1414
// CHECK-LABEL: signed_cmp:
1515
pub fn signed_cmp(a: i16, b: i16) -> std::cmp::Ordering {
1616
// DEBUG: sub
17-
// DEBUG: setl
18-
// DEBUG: setg
19-
// DEBUG: sub
20-
// DEBUG: ret
21-
//
2217
// OPTIM: cmp
23-
// OPTIM: setl
24-
// OPTIM: setg
25-
// OPTIM: sub
26-
// OPTIM: ret
18+
// CHECK: setl
19+
// CHECK: setg
20+
// CHECK: sub
21+
// CHECK: ret
2722
three_way_compare(a, b)
2823
}
2924

3025
#[no_mangle]
3126
// CHECK-LABEL: unsigned_cmp:
3227
pub fn unsigned_cmp(a: u16, b: u16) -> std::cmp::Ordering {
3328
// DEBUG: sub
34-
// DEBUG: seta
35-
// DEBUG: sbb
36-
// DEBUG: ret
37-
//
3829
// OPTIM: cmp
39-
// OPTIM: seta
40-
// OPTIM: sbb
41-
// OPTIM: ret
30+
// CHECK: seta
31+
// CHECK: sbb
32+
// CHECK: ret
4233
three_way_compare(a, b)
4334
}

0 commit comments

Comments
 (0)