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/LoopIndexSplit/2007-09-24-UpdateIterationSpace.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/LoopIndexSplit/2007-09-24-UpdateIterationSpace.ll')
-rw-r--r-- | llvm/test/Transforms/LoopIndexSplit/2007-09-24-UpdateIterationSpace.ll | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/test/Transforms/LoopIndexSplit/2007-09-24-UpdateIterationSpace.ll b/llvm/test/Transforms/LoopIndexSplit/2007-09-24-UpdateIterationSpace.ll index ec29847e7a8..928fd959ae9 100644 --- a/llvm/test/Transforms/LoopIndexSplit/2007-09-24-UpdateIterationSpace.ll +++ b/llvm/test/Transforms/LoopIndexSplit/2007-09-24-UpdateIterationSpace.ll @@ -8,7 +8,7 @@ entry: bb.preheader: ; preds = %entry %tmp3031 = fpext float %contribution to double ; <double> [#uses=1] - %tmp32 = mul double %tmp3031, 5.000000e-01 ; <double> [#uses=1] + %tmp32 = fmul double %tmp3031, 5.000000e-01 ; <double> [#uses=1] %tmp3839 = fpext float %sigmal to double ; <double> [#uses=1] br label %bb @@ -22,19 +22,19 @@ bb: ; preds = %bb.preheader, %cond_next45 cond_true9: ; preds = %bb %tmp12 = getelementptr float* %x, i32 %i.01.0 ; <float*> [#uses=1] %tmp13 = load float* %tmp12, align 4 ; <float> [#uses=1] - %tmp15 = sub float %xcen, %tmp13 ; <float> [#uses=1] + %tmp15 = fsub float %xcen, %tmp13 ; <float> [#uses=1] %tmp16 = tail call float @fabsf( float %tmp15 ) ; <float> [#uses=1] %tmp18 = fdiv float %tmp16, %sigmal ; <float> [#uses=1] %tmp21 = load float** %y, align 4 ; <float*> [#uses=2] %tmp27 = getelementptr float* %tmp21, i32 %i.01.0 ; <float*> [#uses=1] %tmp28 = load float* %tmp27, align 4 ; <float> [#uses=1] %tmp2829 = fpext float %tmp28 to double ; <double> [#uses=1] - %tmp34 = sub float -0.000000e+00, %tmp18 ; <float> [#uses=1] + %tmp34 = fsub float -0.000000e+00, %tmp18 ; <float> [#uses=1] %tmp3435 = fpext float %tmp34 to double ; <double> [#uses=1] %tmp36 = tail call double @exp( double %tmp3435 ) ; <double> [#uses=1] - %tmp37 = mul double %tmp32, %tmp36 ; <double> [#uses=1] + %tmp37 = fmul double %tmp32, %tmp36 ; <double> [#uses=1] %tmp40 = fdiv double %tmp37, %tmp3839 ; <double> [#uses=1] - %tmp41 = add double %tmp2829, %tmp40 ; <double> [#uses=1] + %tmp41 = fadd double %tmp2829, %tmp40 ; <double> [#uses=1] %tmp4142 = fptrunc double %tmp41 to float ; <float> [#uses=1] %tmp44 = getelementptr float* %tmp21, i32 %i.01.0 ; <float*> [#uses=1] store float %tmp4142, float* %tmp44, align 4 |