diff options
| author | Dan Gohman <gohman@apple.com> | 2009-06-04 22:49:04 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-06-04 22:49:04 +0000 |
| commit | a5b9645c4b7a1d8be5e41081b99f27b49b8aa8cf (patch) | |
| tree | 7f5a9f6633be0c4e77a1bb00e5bfcfcca14e219b /llvm/test/Transforms/ConstProp/calls.ll | |
| parent | 72a4d2fec138ad6d2becbc69c6d034246a056d09 (diff) | |
| download | bcm5719-llvm-a5b9645c4b7a1d8be5e41081b99f27b49b8aa8cf.tar.gz bcm5719-llvm-a5b9645c4b7a1d8be5e41081b99f27b49b8aa8cf.zip | |
Split the Add, Sub, and Mul instruction opcodes into separate
integer and floating-point opcodes, introducing
FAdd, FSub, and FMul.
For now, the AsmParser, BitcodeReader, and IRBuilder all preserve
backwards compatability, and the Core LLVM APIs preserve backwards
compatibility for IR producers. Most front-ends won't need to change
immediately.
This implements the first step of the plan outlined here:
http://nondot.org/sabre/LLVMNotes/IntegerOverflow.txt
llvm-svn: 72897
Diffstat (limited to 'llvm/test/Transforms/ConstProp/calls.ll')
| -rw-r--r-- | llvm/test/Transforms/ConstProp/calls.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/Transforms/ConstProp/calls.ll b/llvm/test/Transforms/ConstProp/calls.ll index 126db4ca231..c573e565fc8 100644 --- a/llvm/test/Transforms/ConstProp/calls.ll +++ b/llvm/test/Transforms/ConstProp/calls.ll @@ -13,11 +13,11 @@ declare i1 @llvm.isunordered.f64(double, double) define double @T() { %A = call double @cos( double 0.000000e+00 ) ; <double> [#uses=1] %B = call double @sin( double 0.000000e+00 ) ; <double> [#uses=1] - %a = add double %A, %B ; <double> [#uses=1] + %a = fadd double %A, %B ; <double> [#uses=1] %C = call double @tan( double 0.000000e+00 ) ; <double> [#uses=1] - %b = add double %a, %C ; <double> [#uses=1] + %b = fadd double %a, %C ; <double> [#uses=1] %D = call double @sqrt( double 4.000000e+00 ) ; <double> [#uses=1] - %c = add double %b, %D ; <double> [#uses=1] + %c = fadd double %b, %D ; <double> [#uses=1] ret double %c } |

