Skip to content

Commit f3c89f1

Browse files
committed
add codegen test for issue-118392, 71096
1 parent 36e1414 commit f3c89f1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/codegen/issues/issue-118392.rs

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//@ compile-flags: -O
2+
//@ min-llvm-version: 18
3+
#![crate_type = "lib"]
4+
5+
// CHECK-LABEL: @div2
6+
// CHECK: ashr i32 %a, 1
7+
// CHECK-NEXT: ret i32
8+
#[no_mangle]
9+
pub fn div2(a: i32) -> i32 {
10+
a.div_euclid(2)
11+
}

0 commit comments

Comments
 (0)