Skip to content

Commit 8c00be9

Browse files
committed
Fix optimization test on arm
1 parent a84b2c6 commit 8c00be9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/codegen/const-array.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#![crate_type = "lib"]
44

5-
const LUT: [u8; 2] = [1, 1];
5+
const LUT: [u8; 4] = [1, 1, 1, 1];
66

77
// CHECK-LABEL: @decode
88
#[no_mangle]
@@ -11,5 +11,5 @@ pub fn decode(i: u8) -> u8 {
1111
// CHECK-NEXT: icmp
1212
// CHECK-NEXT: select
1313
// CHECK-NEXT: ret
14-
if i < 2 { LUT[i as usize] } else { 2 }
14+
if i < 4 { LUT[i as usize] } else { 2 }
1515
}

0 commit comments

Comments
 (0)