diff options
| -rw-r--r-- | compiler-rt/lib/builtins/addvdi3.c | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/builtins/addvsi3.c | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/builtins/addvti3.c | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/builtins/subvdi3.c | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/builtins/subvsi3.c | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/builtins/subvti3.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/compiler-rt/lib/builtins/addvdi3.c b/compiler-rt/lib/builtins/addvdi3.c index db45a27f078..0da38945679 100644 --- a/compiler-rt/lib/builtins/addvdi3.c +++ b/compiler-rt/lib/builtins/addvdi3.c @@ -21,7 +21,7 @@ COMPILER_RT_ABI di_int __addvdi3(di_int a, di_int b) { - di_int s = a + b; + di_int s = (du_int) a + (du_int) b; if (b >= 0) { if (s < a) diff --git a/compiler-rt/lib/builtins/addvsi3.c b/compiler-rt/lib/builtins/addvsi3.c index 81f515cd7bb..94ca726f42b 100644 --- a/compiler-rt/lib/builtins/addvsi3.c +++ b/compiler-rt/lib/builtins/addvsi3.c @@ -21,7 +21,7 @@ COMPILER_RT_ABI si_int __addvsi3(si_int a, si_int b) { - si_int s = a + b; + si_int s = (su_int) a + (su_int) b; if (b >= 0) { if (s < a) diff --git a/compiler-rt/lib/builtins/addvti3.c b/compiler-rt/lib/builtins/addvti3.c index 79b9611f98c..c224de60aab 100644 --- a/compiler-rt/lib/builtins/addvti3.c +++ b/compiler-rt/lib/builtins/addvti3.c @@ -23,7 +23,7 @@ COMPILER_RT_ABI ti_int __addvti3(ti_int a, ti_int b) { - ti_int s = a + b; + ti_int s = (tu_int) a + (tu_int) b; if (b >= 0) { if (s < a) diff --git a/compiler-rt/lib/builtins/subvdi3.c b/compiler-rt/lib/builtins/subvdi3.c index 0f1f924effc..71fc70ffa92 100644 --- a/compiler-rt/lib/builtins/subvdi3.c +++ b/compiler-rt/lib/builtins/subvdi3.c @@ -21,7 +21,7 @@ COMPILER_RT_ABI di_int __subvdi3(di_int a, di_int b) { - di_int s = a - b; + di_int s = (du_int) a - (du_int) b; if (b >= 0) { if (s > a) diff --git a/compiler-rt/lib/builtins/subvsi3.c b/compiler-rt/lib/builtins/subvsi3.c index ec4594c9f0e..e6c0fb688c9 100644 --- a/compiler-rt/lib/builtins/subvsi3.c +++ b/compiler-rt/lib/builtins/subvsi3.c @@ -21,7 +21,7 @@ COMPILER_RT_ABI si_int __subvsi3(si_int a, si_int b) { - si_int s = a - b; + si_int s = (su_int) a - (su_int) b; if (b >= 0) { if (s > a) diff --git a/compiler-rt/lib/builtins/subvti3.c b/compiler-rt/lib/builtins/subvti3.c index 8f1171430e1..a6804d2d7b9 100644 --- a/compiler-rt/lib/builtins/subvti3.c +++ b/compiler-rt/lib/builtins/subvti3.c @@ -23,7 +23,7 @@ COMPILER_RT_ABI ti_int __subvti3(ti_int a, ti_int b) { - ti_int s = a - b; + ti_int s = (tu_int) a - (tu_int) b; if (b >= 0) { if (s > a) |

