From cf2dff2b1e3fa55fa5415d524200070d0d7aacfe Mon Sep 17 00:00:00 2001 From: Albert Larsan <74931857+albertlarsan68@users.noreply.github.com> Date: Thu, 5 Jan 2023 09:13:28 +0100 Subject: Move /src/test to /tests --- src/test/codegen/bool-cmp.rs | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/test/codegen/bool-cmp.rs (limited to 'src/test/codegen/bool-cmp.rs') diff --git a/src/test/codegen/bool-cmp.rs b/src/test/codegen/bool-cmp.rs deleted file mode 100644 index 5090f7c378c..00000000000 --- a/src/test/codegen/bool-cmp.rs +++ /dev/null @@ -1,18 +0,0 @@ -// This is a test for optimal Ord trait implementation for bool. -// See for more info. - -// compile-flags: -C opt-level=3 - -#![crate_type = "lib"] - -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: {{z|s}}ext i1 -// CHECK: {{sub|add}} nsw - a.cmp(&b) -} -- cgit 1.4.1-3-g733a5