From 0878bf489ac94d45e6f5d1168664f4e7a2ec54f9 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Tue, 15 Apr 2014 16:40:27 -0400 Subject: [PATCH] regressions/ck_pr: Coverage for immediates. --- regressions/ck_pr/validate/ck_pr_or.c | 4 +++- regressions/ck_pr/validate/ck_pr_store.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/regressions/ck_pr/validate/ck_pr_or.c b/regressions/ck_pr/validate/ck_pr_or.c index 8c797a2..27580c3 100644 --- a/regressions/ck_pr/validate/ck_pr_or.c +++ b/regressions/ck_pr/validate/ck_pr_or.c @@ -42,7 +42,9 @@ #define CK_PR_OR_T(w, v, d) \ { \ - uint##w##_t t = v; \ + uint##w##_t t; \ + ck_pr_or_##w(&t, 1ULL << (w - 1)); \ + t = v; \ ck_pr_or_##w(&t, d); \ if (t != (uint##w##_t)(v | d)) { \ printf("FAIL ["); \ diff --git a/regressions/ck_pr/validate/ck_pr_store.c b/regressions/ck_pr/validate/ck_pr_store.c index 23b6d47..e4b852b 100644 --- a/regressions/ck_pr/validate/ck_pr_store.c +++ b/regressions/ck_pr/validate/ck_pr_store.c @@ -40,7 +40,8 @@ #define CK_PR_STORE_B(w) \ { \ - uint##w##_t t = (uint##w##_t)-1, a = 0; \ + uint##w##_t t = (uint##w##_t)-1, a = 0, b; \ + ck_pr_store_##w(&b, 1ULL << (w - 1)); \ unsigned int i; \ printf("ck_pr_store_" #w ": "); \ if (w < 10) \