summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/inline-asm-validate-riscv.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/inline-asm-validate-riscv.c')
-rw-r--r--clang/test/Sema/inline-asm-validate-riscv.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/test/Sema/inline-asm-validate-riscv.c b/clang/test/Sema/inline-asm-validate-riscv.c
index cba08c86528..744f73e23cf 100644
--- a/clang/test/Sema/inline-asm-validate-riscv.c
+++ b/clang/test/Sema/inline-asm-validate-riscv.c
@@ -4,7 +4,6 @@
void I(int i) {
static const int BelowMin = -2049;
static const int AboveMax = 2048;
- asm volatile ("" :: "I"(i)); // expected-error{{constraint 'I' expects an integer constant expression}}
asm volatile ("" :: "I"(BelowMin)); // expected-error{{value '-2049' out of range for constraint 'I'}}
asm volatile ("" :: "I"(AboveMax)); // expected-error{{value '2048' out of range for constraint 'I'}}
}
@@ -12,7 +11,6 @@ void I(int i) {
void J(int j) {
static const int BelowMin = -1;
static const int AboveMax = 1;
- asm volatile ("" :: "J"(j)); // expected-error{{constraint 'J' expects an integer constant expression}}
asm volatile ("" :: "J"(BelowMin)); // expected-error{{value '-1' out of range for constraint 'J'}}
asm volatile ("" :: "J"(AboveMax)); // expected-error{{value '1' out of range for constraint 'J'}}
}
@@ -20,7 +18,6 @@ void J(int j) {
void K(int k) {
static const int BelowMin = -1;
static const int AboveMax = 32;
- asm volatile ("" :: "K"(k)); // expected-error{{constraint 'K' expects an integer constant expression}}
asm volatile ("" :: "K"(BelowMin)); // expected-error{{value '-1' out of range for constraint 'K'}}
asm volatile ("" :: "K"(AboveMax)); // expected-error{{value '32' out of range for constraint 'K'}}
}
OpenPOWER on IntegriCloud