Skip to content

Commit 422de35

Browse files
committed
make it into an IR test
1 parent 4b7466c commit 422de35

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/assembly/62531-array-cmp.rs renamed to tests/codegen/array-cmp.rs

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
// Ensure the asm for array comparisons is properly optimized on x86.
1+
// Ensure the asm for array comparisons is properly optimized.
22

3-
//@ min-llvm-version: 12
4-
//@ assembly-output: emit-asm
53
//@ compile-flags: -C opt-level=2
6-
//@ only-x86_64
74

85
#![crate_type = "lib"]
96

10-
// CHECK-LABEL: compare
11-
// CHECK: movb $1, %al
12-
// CHECK-NEXT: retq
7+
// CHECK-LABEL: @compare
8+
// CHECK-NEXT: ret i1 true
139
#[no_mangle]
1410
pub fn compare() -> bool {
1511
let bytes = 12.5f32.to_ne_bytes();

0 commit comments

Comments
 (0)