From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/Driver/frame-pointer.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 clang/test/Driver/frame-pointer.c (limited to 'clang/test/Driver/frame-pointer.c') diff --git a/clang/test/Driver/frame-pointer.c b/clang/test/Driver/frame-pointer.c new file mode 100644 index 0000000..6be395c --- /dev/null +++ b/clang/test/Driver/frame-pointer.c @@ -0,0 +1,24 @@ +// RUN: %clang -target i386-pc-linux -### -S -O0 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK0-32 %s +// RUN: %clang -target i386-pc-linux -### -S -O1 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK1-32 %s +// RUN: %clang -target i386-pc-linux -### -S -O2 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK2-32 %s +// RUN: %clang -target i386-pc-linux -### -S -O3 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK3-32 %s +// RUN: %clang -target i386-pc-linux -### -S -Os %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECKs-32 %s + + +// RUN: %clang -target x86_64-pc-linux -### -S -O0 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK0-64 %s +// RUN: %clang -target x86_64-pc-linux -### -S -O1 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK1-64 %s +// RUN: %clang -target x86_64-pc-linux -### -S -O2 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK2-64 %s +// RUN: %clang -target x86_64-pc-linux -### -S -O3 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK3-64 %s +// RUN: %clang -target x86_64-pc-linux -### -S -Os %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECKs-64 %s + +// CHECK0-32: -mdisable-fp-elim +// CHECK1-32-NOT: -mdisable-fp-elim +// CHECK2-32-NOT: -mdisable-fp-elim +// CHECK3-32-NOT: -mdisable-fp-elim +// CHECKs-32-NOT: -mdisable-fp-elim + +// CHECK0-64: -mdisable-fp-elim +// CHECK1-64-NOT: -mdisable-fp-elim +// CHECK2-64-NOT: -mdisable-fp-elim +// CHECK3-64-NOT: -mdisable-fp-elim +// CHECKs-64-NOT: -mdisable-fp-elim -- cgit v1.2.3