summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/inline.c
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2012-10-24 12:22:56 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2012-10-24 12:22:56 +0000
commit35668cc401cdfc80a45b2d742a7ac6c9962404b9 (patch)
tree7adf7a3e43daf42f5cdef4dc437a4191f9b0651e /clang/test/CodeGen/inline.c
parent1eef2b813c06980bdd8220443228e4737b4e209b (diff)
downloadbcm5719-llvm-35668cc401cdfc80a45b2d742a7ac6c9962404b9.tar.gz
bcm5719-llvm-35668cc401cdfc80a45b2d742a7ac6c9962404b9.zip
A number of test cases assume that an "int" parameter or return value
will be represented in the IR as a plain "i32" type. This causes the tests to spuriously fail on platforms where int is not a 32-bit type, or where the ABI requires attributes like "signext" or "zeroext" to be used. This patch adds -triple or -target parameters to force those tests to use the i386-unknown-unknown target. llvm-svn: 166551
Diffstat (limited to 'clang/test/CodeGen/inline.c')
-rw-r--r--clang/test/CodeGen/inline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeGen/inline.c b/clang/test/CodeGen/inline.c
index 2a01f255dc0..addb30bde42 100644
--- a/clang/test/CodeGen/inline.c
+++ b/clang/test/CodeGen/inline.c
@@ -1,5 +1,5 @@
// RUN: echo "GNU89 tests:"
-// RUN: %clang %s -O1 -emit-llvm -S -o %t -std=gnu89
+// RUN: %clang %s -target i386-unknown-unknown -O1 -emit-llvm -S -o %t -std=gnu89
// RUN: grep "define available_externally i32 @ei()" %t
// RUN: grep "define i32 @foo()" %t
// RUN: grep "define i32 @bar()" %t
@@ -21,7 +21,7 @@
// RUN: grep "define void @testC" %t
// RUN: echo "C99 tests:"
-// RUN: %clang %s -O1 -emit-llvm -S -o %t -std=gnu99
+// RUN: %clang %s -target i386-unknown-unknown -O1 -emit-llvm -S -o %t -std=gnu99
// RUN: grep "define i32 @ei()" %t
// RUN: grep "define available_externally i32 @foo()" %t
// RUN: grep "define i32 @bar()" %t
@@ -43,7 +43,7 @@
// RUN: grep "define void @testC" %t
// RUN: echo "C++ tests:"
-// RUN: %clang -x c++ %s -O1 -emit-llvm -S -o %t -std=c++98
+// RUN: %clang -x c++ %s -target i386-unknown-unknown -O1 -emit-llvm -S -o %t -std=c++98
// RUN: grep "define linkonce_odr i32 @_Z2eiv()" %t
// RUN: grep "define linkonce_odr i32 @_Z3foov()" %t
// RUN: grep "define i32 @_Z3barv()" %t
OpenPOWER on IntegriCloud