diff options
Diffstat (limited to 'test/Sema/arm_acle.c')
-rw-r--r-- | test/Sema/arm_acle.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Sema/arm_acle.c b/test/Sema/arm_acle.c index 866626fc38cb..ec0d55854eeb 100644 --- a/test/Sema/arm_acle.c +++ b/test/Sema/arm_acle.c @@ -30,3 +30,19 @@ int32_t test_ssat_const_diag(int32_t t, const int32_t v) { int32_t test_usat_const_diag(int32_t t, const int32_t v) { return __usat(t, v); // expected-error-re {{argument to {{.*}} must be a constant integer}} } + +/* + * Prefetch intrinsics + */ +void test_pldx_const_diag(int32_t i) { + __pldx(i, 0, 0, 0); // expected-error-re {{argument to {{.*}} must be a constant integer}} +} + +/* + * DBG intrinsic + * First argument for DBG intrinsic must be compile-time constant, + * otherwise an error should be raised. + */ +void test_dbg_const_diag(unsigned int t) { + __dbg(t); // expected-error-re {{argument to {{.*}} must be a constant integer}} +} |