diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-06-11 06:52:58 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-06-11 06:52:58 +0000 |
| commit | 1ab3650ec0bfa70c1a96c3293a8275c17704ec0a (patch) | |
| tree | 5b4cd6ba5a1ce0a1a4649fc96f3a7e62f29e5434 | |
| parent | 76380ab4c0da5f4f748b0a0cf01395c59d44a075 (diff) | |
| download | bcm5719-llvm-1ab3650ec0bfa70c1a96c3293a8275c17704ec0a.tar.gz bcm5719-llvm-1ab3650ec0bfa70c1a96c3293a8275c17704ec0a.zip | |
Tweak a couple of tests on win32 hosts with +Asserts.
- Don't use assert(0), or tests may pass or fail according to assertions.
- For now, The tests are marked as XFAIL for win32 hosts.
FIXME: Could we avoid XFAIL to specify triple in the RUN lines?
llvm-svn: 183728
| -rw-r--r-- | llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp | 2 | ||||
| -rw-r--r-- | llvm/test/MC/ARM/arm-thumb-cpus-default.s | 3 | ||||
| -rw-r--r-- | llvm/test/MC/ARM/arm-thumb-cpus.s | 3 |
3 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp b/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp index 2488b6bf0c8..1f0f9eb4687 100644 --- a/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp +++ b/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp @@ -681,7 +681,7 @@ MCAsmBackend *llvm::createARMAsmBackend(const Target &T, StringRef TT, StringRef } if (TheTriple.isOSBinFormatCOFF()) - assert(0 && "Windows not supported on ARM"); + llvm_unreachable("Windows not supported on ARM"); uint8_t OSABI = MCELFObjectTargetWriter::getOSABI(Triple(TT).getOS()); return new ELFARMAsmBackend(T, TT, OSABI); diff --git a/llvm/test/MC/ARM/arm-thumb-cpus-default.s b/llvm/test/MC/ARM/arm-thumb-cpus-default.s index 636ee3c5057..040039f2154 100644 --- a/llvm/test/MC/ARM/arm-thumb-cpus-default.s +++ b/llvm/test/MC/ARM/arm-thumb-cpus-default.s @@ -5,6 +5,9 @@ @ RUN: llvm-mc -show-encoding -triple=armv7m < %s | FileCheck %s --check-prefix=CHECK-THUMB-ONLY @ RUN: llvm-mc -show-encoding -triple=armv6m < %s | FileCheck %s --check-prefix=CHECK-THUMB-ONLY +@ FIXME: Could we avoid XFAIL to specify triple above? +@ XFAIL: cygwin,mingw32,win32 + @ Make sure the architecture chosen by LLVM defaults to a compatible @ ARM/Thumb mode. movs r0, r0 diff --git a/llvm/test/MC/ARM/arm-thumb-cpus.s b/llvm/test/MC/ARM/arm-thumb-cpus.s index c15e8078186..ea4e71a6aca 100644 --- a/llvm/test/MC/ARM/arm-thumb-cpus.s +++ b/llvm/test/MC/ARM/arm-thumb-cpus.s @@ -5,6 +5,9 @@ @ RUN: llvm-mc -show-encoding -triple=armv7m < %s 2>&1 | FileCheck %s --check-prefix=CHECK-THUMB-ONLY @ RUN: llvm-mc -show-encoding -triple=armv6m < %s 2>&1 | FileCheck %s --check-prefix=CHECK-THUMB-ONLY +@ FIXME: Could we avoid XFAIL to specify triple above? +@ XFAIL: cygwin,mingw32,win32 + @ Make sure correct diagnostics are given for CPUs without support for @ one or other of the execution states. .thumb |

