view test/Transforms/InstCombine/pow-2.ll @ 0:95c75e76d11b LLVM3.4

LLVM 3.4
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 13:56:28 +0900
parents
children c2174574ed3a
line wrap: on
line source

; Test that the pow library call simplifier works correctly.
;
; RUN: opt < %s -instcombine -S | FileCheck %s

declare float @pow(double, double)

; Check that pow functions with the wrong prototype aren't simplified.

define float @test_no_simplify1(double %x) {
; CHECK-LABEL: @test_no_simplify1(
  %retval = call float @pow(double 1.0, double %x)
; CHECK-NEXT: call float @pow(double 1.000000e+00, double %x)
  ret float %retval
}