; Test that the StrCatOptimizer works correctly
; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | not grep 'pow'

declare double %pow(double,double)
%fpstorage = global double 5.0

implementation   ; Functions:

int %main () {
  %fpnum = load double* %fpstorage;
  %one = call double %pow(double 1.0, double %fpnum)
  %two = call double %pow(double %one, double 0.5)
  %three = call double %pow(double %two, double 1.0)
  %four = call double %pow(double %three, double -1.0)
  %five = call double %pow(double %four, double 0.0)
  %result = cast double %five to int
  ret int %result
}

; Test that the StrCatOptimizer works correctly
; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | not grep 'call.*pow'

declare double %pow(double,double)
%fpstorage = global double 5.0

implementation   ; Functions:

int %main () {
  %fpnum = load double* %fpstorage;
  %one = call double %pow(double 1.0, double %fpnum)
  %two = call double %pow(double %one, double 0.5)
  %three = call double %pow(double %two, double 1.0)
  %four = call double %pow(double %three, double -1.0)
  %five = call double %pow(double %four, double 0.0)
  %result = cast double %five to int
  ret int %result
}

Fix the success criteria for the test to make call instructions with "pow" not just any occurrence of "pow".
Fix the success criteria for the test to make call instructions with "pow"
not just any occurrence of "pow".


git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@21620 91177308-0d34-0410-b5e6-96231b3b80d8
