summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2016-05-13 15:37:46 +0000
committerRenato Golin <renato.golin@linaro.org>2016-05-13 15:37:46 +0000
commitd7a64a5b231b8094184ca2d0bc1874addccf703e (patch)
treea70481b53c77eb121399d337217722c39f2c5616 /llvm/test/CodeGen/AArch64
parent631e5f23f98eff23abd3b1b62e812053a7cd6a6a (diff)
downloadbcm5719-llvm-d7a64a5b231b8094184ca2d0bc1874addccf703e.tar.gz
bcm5719-llvm-d7a64a5b231b8094184ca2d0bc1874addccf703e.zip
[llc] New diagnostic handler
Without a diagnostic handler installed, llc's behaviour is to exit on the first error that it encounters. This is very different from the behaviour of clang and other front ends, which try to gather as many errors as possible before exiting. This commit adds a diagnostic handler to llc, allowing it to find and report more than one error. The old behaviour is preserved under a flag (-exit-on-error). Some of the tests fail with the new diagnostic handler, so they have to use the new flag in order to run under the previous behaviour. Some of these are known bugs, others need further investigation. Ideally, we should fix the tests and remove the flag at some point in the future. Patch by Diana Picus. llvm-svn: 269428
Diffstat (limited to 'llvm/test/CodeGen/AArch64')
-rw-r--r--llvm/test/CodeGen/AArch64/arm64-inline-asm-error-I.ll2
-rw-r--r--llvm/test/CodeGen/AArch64/arm64-inline-asm-error-J.ll2
-rw-r--r--llvm/test/CodeGen/AArch64/arm64-inline-asm-error-K.ll2
-rw-r--r--llvm/test/CodeGen/AArch64/arm64-inline-asm-error-L.ll2
-rw-r--r--llvm/test/CodeGen/AArch64/arm64-inline-asm-error-M.ll2
-rw-r--r--llvm/test/CodeGen/AArch64/arm64-inline-asm-error-N.ll2
6 files changed, 6 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-I.ll b/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-I.ll
index a7aaf9e55d1..ec4934a29fe 100644
--- a/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-I.ll
+++ b/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-I.ll
@@ -1,4 +1,4 @@
-; RUN: not llc -march=arm64 < %s 2> %t
+; RUN: not llc -march=arm64 -exit-on-error < %s 2> %t
; RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s
; Check for at least one invalid constant.
diff --git a/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-J.ll b/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-J.ll
index 077e1b80d93..a155c144b3a 100644
--- a/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-J.ll
+++ b/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-J.ll
@@ -1,4 +1,4 @@
-; RUN: not llc -march=arm64 < %s 2> %t
+; RUN: not llc -march=arm64 -exit-on-error < %s 2> %t
; RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s
; Check for at least one invalid constant.
diff --git a/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-K.ll b/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-K.ll
index 2a7f9619de5..99b88b88c34 100644
--- a/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-K.ll
+++ b/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-K.ll
@@ -1,4 +1,4 @@
-; RUN: not llc -march=arm64 < %s 2> %t
+; RUN: not llc -march=arm64 -exit-on-error < %s 2> %t
; RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s
; Check for at least one invalid constant.
diff --git a/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-L.ll b/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-L.ll
index 17019434195..b8afc9bf1d7 100644
--- a/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-L.ll
+++ b/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-L.ll
@@ -1,4 +1,4 @@
-; RUN: not llc -march=arm64 < %s 2> %t
+; RUN: not llc -march=arm64 -exit-on-error < %s 2> %t
; RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s
; Check for at least one invalid constant.
diff --git a/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-M.ll b/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-M.ll
index 952bf6042c2..75867504541 100644
--- a/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-M.ll
+++ b/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-M.ll
@@ -1,4 +1,4 @@
-; RUN: not llc -march=arm64 < %s 2> %t
+; RUN: not llc -march=arm64 -exit-on-error < %s 2> %t
; RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s
; Check for at least one invalid constant.
diff --git a/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-N.ll b/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-N.ll
index b4a199f160a..32c7d32a8ef 100644
--- a/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-N.ll
+++ b/llvm/test/CodeGen/AArch64/arm64-inline-asm-error-N.ll
@@ -1,4 +1,4 @@
-; RUN: not llc -march=arm64 < %s 2> %t
+; RUN: not llc -march=arm64 -exit-on-error < %s 2> %t
; RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s
; Check for at least one invalid constant.
OpenPOWER on IntegriCloud