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/Feature | |
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/Feature')
-rw-r--r-- | llvm/test/Feature/ppcld.ll | 2 | ||||
-rw-r--r-- | llvm/test/Feature/sparcld.ll | 2 | ||||
-rw-r--r-- | llvm/test/Feature/x86ld.ll | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/Feature/ppcld.ll b/llvm/test/Feature/ppcld.ll index f21eb437c6d..393a491847c 100644 --- a/llvm/test/Feature/ppcld.ll +++ b/llvm/test/Feature/ppcld.ll @@ -15,7 +15,7 @@ entry: %tmp = load float* @f ; <float> [#uses=1] %tmp1 = fpext float %tmp to double ; <double> [#uses=1] %tmp2 = load double* @d ; <double> [#uses=1] - %tmp3 = mul double %tmp1, %tmp2 ; <double> [#uses=1] + %tmp3 = fmul double %tmp1, %tmp2 ; <double> [#uses=1] %tmp4 = fpext double %tmp3 to ppc_fp128 ; <ppc_fp128> [#uses=1] store ppc_fp128 %tmp4, ppc_fp128* @ld br label %return diff --git a/llvm/test/Feature/sparcld.ll b/llvm/test/Feature/sparcld.ll index 2e99bdae326..095f6f6c7c7 100644 --- a/llvm/test/Feature/sparcld.ll +++ b/llvm/test/Feature/sparcld.ll @@ -13,7 +13,7 @@ entry: %tmp = load float* @f ; <float> [#uses=1] %tmp1 = fpext float %tmp to double ; <double> [#uses=1] %tmp2 = load double* @d ; <double> [#uses=1] - %tmp3 = mul double %tmp1, %tmp2 ; <double> [#uses=1] + %tmp3 = fmul double %tmp1, %tmp2 ; <double> [#uses=1] %tmp4 = fpext double %tmp3 to fp128 ; <fp128> [#uses=1] store fp128 %tmp4, fp128* @ld br label %return diff --git a/llvm/test/Feature/x86ld.ll b/llvm/test/Feature/x86ld.ll index 690400346e3..32005aee305 100644 --- a/llvm/test/Feature/x86ld.ll +++ b/llvm/test/Feature/x86ld.ll @@ -15,7 +15,7 @@ entry: %tmp = load float* @f ; <float> [#uses=1] %tmp1 = fpext float %tmp to double ; <double> [#uses=1] %tmp2 = load double* @d ; <double> [#uses=1] - %tmp3 = mul double %tmp1, %tmp2 ; <double> [#uses=1] + %tmp3 = fmul double %tmp1, %tmp2 ; <double> [#uses=1] %tmp4 = fpext double %tmp3 to x86_fp80 ; <x86_fp80> [#uses=1] store x86_fp80 %tmp4, x86_fp80* @ld br label %return |