Update bool-cmp.rs codegen
This commit is contained in:
parent
31aecccbcd
commit
3d8f454cd0
1 changed files with 3 additions and 2 deletions
|
@ -10,8 +10,9 @@ use std::cmp::Ordering;
|
|||
// CHECK-LABEL: @cmp_bool
|
||||
#[no_mangle]
|
||||
pub fn cmp_bool(a: bool, b: bool) -> Ordering {
|
||||
// LLVM 10 produces (zext a) + (sext b), but the final lowering is (zext a) - (zext b).
|
||||
// CHECK: zext i1
|
||||
// CHECK: zext i1
|
||||
// CHECK: sub nsw
|
||||
// CHECK: {{z|s}}ext i1
|
||||
// CHECK: {{sub|add}} nsw
|
||||
a.cmp(&b)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue