DaniPopes
58c10c66c1
Lower BinOp::Cmp to llvm.{s,u}cmp.* intrinsics
...
Lowers `mir::BinOp::Cmp` (`three_way_compare` intrinsic) to the corresponding
LLVM `llvm.{s,u}cmp.i8.*` intrinsics, added in LLVM 19.
2025-03-06 22:29:05 +08:00
Scott McMurray
3a3aedee10
Update some comparison tests now that they pass in LLVM20
2025-02-17 16:36:14 -08:00
许杰友 Jieyou Xu (Joe)
6e48b96692
[AUTO_GENERATED] Migrate compiletest to use ui_test
-style //@
directives
2024-02-22 16:04:04 +00:00
Scott McMurray
4b3f11523d
Remove an unneeded helper from the tuple library code
2023-11-25 22:25:00 -08:00
Josh Stone
190ded8443
Update the minimum external LLVM to 15
2023-07-27 14:07:08 -07:00
Scott McMurray
680e21687d
Use partial_cmp
to implement tuple lt
/le
/ge
/gt
2023-02-16 23:59:13 -08:00
Scott McMurray
dc37e37329
Add a codegen test for comparisons of 2-tuples of primitives
...
The operators are all overridden in full for tuples, so those parts pass easily, but they're worth pinning.
Going via `Ord::cmp`, though, doesn't optimize away for anything but `cmp`+`is_le`. So this leaves `FIXME`s in the tests for the others.
2023-02-16 21:36:14 -08:00