]> git.lizzy.rs Git - rust.git/blob - tests/codegen/issue-34947-pow-i32.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / codegen / issue-34947-pow-i32.rs
1 // compile-flags: -O
2
3 #![crate_type = "lib"]
4
5 // CHECK-LABEL: @issue_34947
6 #[no_mangle]
7 pub fn issue_34947(x: i32) -> i32 {
8     // CHECK: mul
9     // CHECK-NEXT: mul
10     // CHECK-NEXT: mul
11     // CHECK-NEXT: ret
12     x.pow(5)
13 }