We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31aeccc commit 3d8f454Copy full SHA for 3d8f454
src/test/codegen/bool-cmp.rs
@@ -10,8 +10,9 @@ use std::cmp::Ordering;
10
// CHECK-LABEL: @cmp_bool
11
#[no_mangle]
12
pub fn cmp_bool(a: bool, b: bool) -> Ordering {
13
+// LLVM 10 produces (zext a) + (sext b), but the final lowering is (zext a) - (zext b).
14
// CHECK: zext i1
-// CHECK: zext i1
15
-// CHECK: sub nsw
+// CHECK: {{z|s}}ext i1
16
+// CHECK: {{sub|add}} nsw
17
a.cmp(&b)
18
}
0 commit comments