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/ExecutionEngine | |
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/ExecutionEngine')
-rw-r--r-- | llvm/test/ExecutionEngine/2003-01-10-FUCOM.ll | 6 | ||||
-rw-r--r-- | llvm/test/ExecutionEngine/test-fp.ll | 8 | ||||
-rw-r--r-- | llvm/test/ExecutionEngine/test-setcond-fp.ll | 8 |
3 files changed, 11 insertions, 11 deletions
diff --git a/llvm/test/ExecutionEngine/2003-01-10-FUCOM.ll b/llvm/test/ExecutionEngine/2003-01-10-FUCOM.ll index 628be16e319..30f93309d5c 100644 --- a/llvm/test/ExecutionEngine/2003-01-10-FUCOM.ll +++ b/llvm/test/ExecutionEngine/2003-01-10-FUCOM.ll @@ -2,10 +2,10 @@ ; RUN: lli %t.bc > /dev/null define i32 @main() { - %X = add double 0.000000e+00, 1.000000e+00 ; <double> [#uses=1] - %Y = sub double 0.000000e+00, 1.000000e+00 ; <double> [#uses=2] + %X = fadd double 0.000000e+00, 1.000000e+00 ; <double> [#uses=1] + %Y = fsub double 0.000000e+00, 1.000000e+00 ; <double> [#uses=2] %Z = fcmp oeq double %X, %Y ; <i1> [#uses=0] - add double %Y, 0.000000e+00 ; <double>:1 [#uses=0] + fadd double %Y, 0.000000e+00 ; <double>:1 [#uses=0] ret i32 0 } diff --git a/llvm/test/ExecutionEngine/test-fp.ll b/llvm/test/ExecutionEngine/test-fp.ll index a119b40c34a..2e8ecd5a740 100644 --- a/llvm/test/ExecutionEngine/test-fp.ll +++ b/llvm/test/ExecutionEngine/test-fp.ll @@ -3,13 +3,13 @@ define double @test(double* %DP, double %Arg) { %D = load double* %DP ; <double> [#uses=1] - %V = add double %D, 1.000000e+00 ; <double> [#uses=2] - %W = sub double %V, %V ; <double> [#uses=3] - %X = mul double %W, %W ; <double> [#uses=2] + %V = fadd double %D, 1.000000e+00 ; <double> [#uses=2] + %W = fsub double %V, %V ; <double> [#uses=3] + %X = fmul double %W, %W ; <double> [#uses=2] %Y = fdiv double %X, %X ; <double> [#uses=2] %Z = frem double %Y, %Y ; <double> [#uses=3] %Z1 = fdiv double %Z, %W ; <double> [#uses=0] - %Q = add double %Z, %Arg ; <double> [#uses=1] + %Q = fadd double %Z, %Arg ; <double> [#uses=1] %R = bitcast double %Q to double ; <double> [#uses=1] store double %R, double* %DP ret double %Z diff --git a/llvm/test/ExecutionEngine/test-setcond-fp.ll b/llvm/test/ExecutionEngine/test-setcond-fp.ll index 235c4027b99..b917693abd4 100644 --- a/llvm/test/ExecutionEngine/test-setcond-fp.ll +++ b/llvm/test/ExecutionEngine/test-setcond-fp.ll @@ -3,10 +3,10 @@ define i32 @main() { - %double1 = add double 0.000000e+00, 0.000000e+00 ; <double> [#uses=6] - %double2 = add double 0.000000e+00, 0.000000e+00 ; <double> [#uses=6] - %float1 = add float 0.000000e+00, 0.000000e+00 ; <float> [#uses=6] - %float2 = add float 0.000000e+00, 0.000000e+00 ; <float> [#uses=6] + %double1 = fadd double 0.000000e+00, 0.000000e+00 ; <double> [#uses=6] + %double2 = fadd double 0.000000e+00, 0.000000e+00 ; <double> [#uses=6] + %float1 = fadd float 0.000000e+00, 0.000000e+00 ; <float> [#uses=6] + %float2 = fadd float 0.000000e+00, 0.000000e+00 ; <float> [#uses=6] %test49 = fcmp oeq float %float1, %float2 ; <i1> [#uses=0] %test50 = fcmp oge float %float1, %float2 ; <i1> [#uses=0] %test51 = fcmp ogt float %float1, %float2 ; <i1> [#uses=0] |