summaryrefslogtreecommitdiffstats
path: root/src/test/codegen/issue-34947-pow-i32.rs
blob: 653da8e8b5f7bff2112f97d12ebccedf3dea137b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// compile-flags: -O

#![crate_type = "lib"]

// CHECK-LABEL: @issue_34947
#[no_mangle]
pub fn issue_34947(x: i32) -> i32 {
    // CHECK: mul
    // CHECK-NEXT: mul
    // CHECK-NEXT: mul
    // CHECK-NEXT: ret
    x.pow(5)
}