Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / LoongArch / inline-asm-constraints-error.c
blobb4430cf40e622bc656805ad6b8d26394d5116e73
1 // RUN: not %clang_cc1 -triple loongarch32 -O2 -emit-llvm %s 2>&1 -o - | FileCheck %s
2 // RUN: not %clang_cc1 -triple loongarch64 -O2 -emit-llvm %s 2>&1 -o - | FileCheck %s
4 void test_l(void) {
5 // CHECK: :[[#@LINE+1]]:27: error: value '32768' out of range for constraint 'l'
6 asm volatile ("" :: "l"(32768));
7 // CHECK: :[[#@LINE+1]]:27: error: value '-32769' out of range for constraint 'l'
8 asm volatile ("" :: "l"(-32769));
11 void test_I(void) {
12 // CHECK: :[[#@LINE+1]]:27: error: value '2048' out of range for constraint 'I'
13 asm volatile ("" :: "I"(2048));
14 // CHECK: :[[#@LINE+1]]:27: error: value '-2049' out of range for constraint 'I'
15 asm volatile ("" :: "I"(-2049));
18 void test_K(void) {
19 // CHECK: :[[#@LINE+1]]:27: error: value '4096' out of range for constraint 'K'
20 asm volatile ("" :: "K"(4096));
21 // CHECK: :[[#@LINE+1]]:27: error: value '-1' out of range for constraint 'K'
22 asm volatile ("" :: "K"(-1));