rust/tests/codegen/issue-34947-pow-i32.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
226 B
Rust
Raw Normal View History

// 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)
}