Skip to content

Commit d3a2366

Browse files
committed
Implement some more llvm float compare intrinsic options
1 parent d3099a4 commit d3a2366

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

Diff for: src/intrinsics/llvm.rs

+4-16
Original file line numberDiff line numberDiff line change
@@ -64,23 +64,11 @@ pub(crate) fn codegen_llvm_intrinsic_call<'tcx>(
6464
0 => FloatCC::Equal,
6565
1 => FloatCC::LessThan,
6666
2 => FloatCC::LessThanOrEqual,
67-
7 => {
68-
unimplemented!(
69-
"Compares corresponding elements in `a` and `b` to see if neither is `NaN`."
70-
);
71-
}
72-
3 => {
73-
unimplemented!(
74-
"Compares corresponding elements in `a` and `b` to see if either is `NaN`."
75-
);
76-
}
67+
7 => FloatCC::Ordered,
68+
3 => FloatCC::Unordered,
7769
4 => FloatCC::NotEqual,
78-
5 => {
79-
unimplemented!("not less than");
80-
}
81-
6 => {
82-
unimplemented!("not less than or equal");
83-
}
70+
5 => FloatCC::UnorderedOrGreaterThanOrEqual,
71+
6 => FloatCC::UnorderedOrGreaterThan,
8472
kind => unreachable!("kind {:?}", kind),
8573
};
8674

0 commit comments

Comments
 (0)