A number of test cases assume that an "int" parameter or return value
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 24 Oct 2012 12:22:56 +0000 (12:22 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 24 Oct 2012 12:22:56 +0000 (12:22 +0000)
commit35668cc401cdfc80a45b2d742a7ac6c9962404b9
tree7adf7a3e43daf42f5cdef4dc437a4191f9b0651e
parent1eef2b813c06980bdd8220443228e4737b4e209b
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
20 files changed:
clang/test/CodeGen/PR3589-freestanding-libcalls.c
clang/test/CodeGen/decl-in-prototype.c
clang/test/CodeGen/extern-inline.c
clang/test/CodeGen/inline.c
clang/test/CodeGen/unwind-attr.c
clang/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp
clang/test/CodeGenCXX/cxx0x-delegating-ctors.cpp
clang/test/CodeGenCXX/cxx0x-initializer-array.cpp
clang/test/CodeGenCXX/devirtualize-virtual-function-calls-final.cpp
clang/test/CodeGenCXX/mangle-extern-local.cpp
clang/test/CodeGenCXX/member-init-assignment.cpp
clang/test/CodeGenCXX/nrvo.cpp
clang/test/CodeGenCXX/pr12251.cpp
clang/test/CodeGenCXX/pragma-visibility.cpp
clang/test/CodeGenCXX/switch-case-folding-2.cpp
clang/test/CodeGenCXX/thunk-linkonce-odr.cpp
clang/test/CodeGenCXX/virtual-operator-call.cpp
clang/test/CodeGenCXX/visibility-inlines-hidden.cpp
clang/test/CodeGenObjC/property.m
clang/test/Frontend/ast-codegen.c