summary refs log tree commit diff
path: root/tests/codegen-llvm/issues/issue-34947-pow-i32.rs
blob: b4750cd35bc34f72bd622b8bed3cf20518258344 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ compile-flags: -Copt-level=3

#![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)
}