mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-05 02:07:56 +00:00
New testcase
llvm-svn: 12916
This commit is contained in:
parent
c4bd98ab79
commit
344d15008a
17
test/Regression/Transforms/ConstProp/calls.ll
Normal file
17
test/Regression/Transforms/ConstProp/calls.ll
Normal file
@ -0,0 +1,17 @@
|
||||
; RUN: llvm-as < %s | opt -constprop | llvm-dis | not grep call
|
||||
|
||||
declare double %cos(double)
|
||||
declare double %sin(double)
|
||||
declare double %tan(double)
|
||||
declare double %sqrt(double)
|
||||
|
||||
double %T() {
|
||||
%A = call double %cos(double 0.0)
|
||||
%B = call double %sin(double 0.0)
|
||||
%a = add double %A, %B
|
||||
%C = call double %tan(double 0.0)
|
||||
%b = add double %a, %C
|
||||
%D = call double %sqrt(double 4.0)
|
||||
%c = add double %b, %D
|
||||
ret double %c
|
||||
}
|
Loading…
Reference in New Issue
Block a user