We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b7466c commit 422de35Copy full SHA for 422de35
tests/assembly/62531-array-cmp.rs renamed to tests/codegen/array-cmp.rs
@@ -1,15 +1,11 @@
1
-// Ensure the asm for array comparisons is properly optimized on x86.
+// Ensure the asm for array comparisons is properly optimized.
2
3
-//@ min-llvm-version: 12
4
-//@ assembly-output: emit-asm
5
//@ compile-flags: -C opt-level=2
6
-//@ only-x86_64
7
8
#![crate_type = "lib"]
9
10
-// CHECK-LABEL: compare
11
-// CHECK: movb $1, %al
12
-// CHECK-NEXT: retq
+// CHECK-LABEL: @compare
+// CHECK-NEXT: ret i1 true
13
#[no_mangle]
14
pub fn compare() -> bool {
15
let bytes = 12.5f32.to_ne_bytes();
0 commit comments