brintos

brintos / llvm-project-archived public Read only

0
0
Text · 594 B · b3093a0 Raw
18 lines · plain
1; RUN: llc -mtriple=x86_64-unknown-unknown < %s | FileCheck %s2 3define float @test_powi(ptr %p) nounwind {4; CHECK-LABEL: test_powi:5; CHECK:       # %bb.0: # %bb6; CHECK-NEXT:        movss {{.*#+}} xmm1 = mem[0],zero,zero,zero7; CHECK-COUNT-31:    mulss %xmm1, %xmm18; CHECK-NEXT:        movss {{.*#+}} xmm0 = [1.0E+0,0.0E+0,0.0E+0,0.0E+0]9; CHECK-NEXT:        divss %xmm1, %xmm010; CHECK-NEXT:        retq11bb:12  %load = load float, ptr %p, align 413  %call = call contract float @llvm.powi.f32.i32(float %load, i32 -2147483648)14  ret float %call15}16 17declare float @llvm.powi.f32.i32(float, i32)18