Hi all,
This is continuing work on make clang tests pass on ARM. The first
patch, compound-literals.cpp.patch, is fixed to consider ARM C++ ABI,
more details can be found in [1]. The second one, p2.cpp.patch, is
marked as XFAIL since the assumption about this test case is not right
on ARM, this is the test case's flaw as be discussed in [2].
Regards,
chenwj
[1]
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120903/063790.html
[2] http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-April/021072.html
--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj
Index: test/CodeGenCXX/compound-literals.cpp
===================================================================
--- test/CodeGenCXX/compound-literals.cpp (revision 163993)
+++ test/CodeGenCXX/compound-literals.cpp (working copy)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple armv7-none-eabi -emit-llvm -o - %s | FileCheck %s
struct X {
X();
@@ -18,10 +18,10 @@
// CHECK-NEXT: [[I:%[a-z0-9]+]] = getelementptr inbounds {{.*}}* [[LVALUE]], i32 0, i32 0
// CHECK-NEXT: store i32 17, i32* [[I]]
// CHECK-NEXT: [[X:%[a-z0-9]+]] = getelementptr inbounds {{.*}} [[LVALUE]], i32 0, i32 1
- // CHECK-NEXT: call void @_ZN1XC1EPKc({{.*}}[[X]]
+ // CHECK-NEXT: call %struct.X* @_ZN1XC1EPKc({{.*}}[[X]]
// CHECK-NEXT: [[I:%[a-z0-9]+]] = getelementptr inbounds {{.*}} [[LVALUE]], i32 0, i32 0
// CHECK-NEXT: [[RESULT:%[a-z0-9]+]] = load i32*
- // CHECK-NEXT: call void @_ZN1YD1Ev
+ // CHECK-NEXT: call %struct.Y* @_ZN1YD1Ev
// CHECK-NEXT: ret i32 [[RESULT]]
return ((Y){17, "seventeen"}).i;
}
Index: test/CXX/conv/conv.prom/p2.cpp
===================================================================
--- test/CXX/conv/conv.prom/p2.cpp (revision 163993)
+++ test/CXX/conv/conv.prom/p2.cpp (working copy)
@@ -1,5 +1,6 @@
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -ffreestanding %s
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -fshort-wchar -ffreestanding %s
+// XFAIL: arm
#include <stdint.h>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits