diff options
author | Chris Lattner <sabre@nondot.org> | 2002-12-28 20:00:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-12-28 20:00:47 +0000 |
commit | 48664e7e2e7d8cd0b3d44db9cfb38811eb4c02b9 (patch) | |
tree | 4695b34bfe0a0ead54a3a4da06c9abf42c3f7328 | |
parent | ce6754766f4ccc869e4c0b70302ab38ac248fba3 (diff) |
Test argument passing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5159 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/ExecutionEngine/test-fp.ll | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/ExecutionEngine/test-fp.ll b/test/ExecutionEngine/test-fp.ll index 7e607717cf..cbb5ef6245 100644 --- a/test/ExecutionEngine/test-fp.ll +++ b/test/ExecutionEngine/test-fp.ll @@ -1,17 +1,18 @@ -double %test(double* %DP) { +double %test(double* %DP, double %Arg) { %D = load double* %DP %V = add double %D, 1.0 %W = sub double %V, %V %X = mul double %W, %W %Y = div double %X, %X %Z = rem double %Y, %Y - store double %Z, double* %DP + %Q = add double %Z, %Arg + store double %Q, double* %DP ret double %Z } int %main() { %X = alloca double - call double %test(double* %X) + call double %test(double* %X, double 1.0) ret int 0 } |