From 9b7bbeca48b10a0eb81708650777703ce41e67d7 Mon Sep 17 00:00:00 2001 From: Weiming Zhao Date: Tue, 21 Mar 2017 05:32:51 +0000 Subject: [Builtin] Implement lit-test support (part 1 of 2: test cases update) Original r297566 is splitted into two parts. This is part one, which adds "RUN" command for test cases. Unit/arm/call_apsr.S is updated to support thumb1. It also fixes a bug in arm/aeabi_uldivmod_test.c gcc_personality_test is XFAILED as the framework cannot handle it so far. cpu_model_test is also XFAILED for now as it is expected to return non-zero. TODO: A few tests are XFAILed for armhf and aarch64. We need further investigating. [1,2] Tracks the issue. [1] https://bugs.llvm.org//show_bug.cgi?id=32260 [2] https://bugs.llvm.org//show_bug.cgi?id=32261 Reviewers: rengolin, compnerd, jroelofs, erik.pilkington, arphaman Reviewed By: jroelofs Subscribers: jroelofs, aemerson, srhines, nemanjai, llvm-commits, mgorny Differential Revision: https://reviews.llvm.org/D30802 llvm-svn: 298339 --- compiler-rt/test/builtins/Unit/cpu_model_test.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'compiler-rt/test/builtins/Unit/cpu_model_test.c') diff --git a/compiler-rt/test/builtins/Unit/cpu_model_test.c b/compiler-rt/test/builtins/Unit/cpu_model_test.c index ed484cdd4c3..6b47d143f07 100644 --- a/compiler-rt/test/builtins/Unit/cpu_model_test.c +++ b/compiler-rt/test/builtins/Unit/cpu_model_test.c @@ -1,4 +1,8 @@ -//===-- cpu_model_test.c - Test __builtin_cpu_supports -------------------------------===// +// FIXME: XFAIL the test because it is expected to return non-zero value. +// XFAIL: * +// REQUIRES: x86-target-arch +// RUN: %clang_builtins %s %librt -o %t && %run %t +//===-- cpu_model_test.c - Test __builtin_cpu_supports --------------------===// // // The LLVM Compiler Infrastructure // @@ -11,8 +15,6 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: x86-target-arch - #include int main (void) { -- cgit v1.2.3