aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear/bool-cast.c
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-08-15 09:55:19 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-06-23 07:46:40 +0200
commitc8fac68af94b9d23b64e844a283f16b9bed2f9e0 (patch)
treecc5ace2a1e618680ce141e5b0aa6ad7066bad21c /validation/linear/bool-cast.c
parentff7f001bef9aa88ff951d61ec10772e7d2143180 (diff)
downloadsparse-dev-c8fac68af94b9d23b64e844a283f16b9bed2f9e0.tar.gz
cast: specialize cast from pointers
Currently all casts to pointers are processed alike. This is simple but rather unconvenient in later phases as this correspond to different operations that obeys to different rules and which later need extra checks. Change this by using a specific instructions (OP_UTPTR) for [unsigned] integer to pointers. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/linear/bool-cast.c')
-rw-r--r--validation/linear/bool-cast.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/validation/linear/bool-cast.c b/validation/linear/bool-cast.c
index 094f4438..43276a46 100644
--- a/validation/linear/bool-cast.c
+++ b/validation/linear/bool-cast.c
@@ -28,6 +28,7 @@ static _Bool fdbl_e(dbl a) { return (_Bool)a; }
* check-output-ignore
* check-output-excludes: cast\\.
* check-output-excludes: fcvt[us]\\.
+ * check-output-excludes: ptrtu\\.
* check-output-pattern(12): setne\\.
* check-output-pattern(2): fcmpune\\.
*/