[cfe-commits] r63669 - /cfe/trunk/test/CodeGen/

Daniel Dunbar daniel at zuster.org
Tue Feb 3 13:54:49 PST 2009


Author: ddunbar
Date: Tue Feb  3 15:54:49 2009
New Revision: 63669

URL: http://llvm.org/viewvc/llvm-project?rev=63669&view=rev
Log:
Force triple for codegen tests which have expectations on output
types.

Modified:
    cfe/trunk/test/CodeGen/2008-07-30-implicit-initialization.c
    cfe/trunk/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c
    cfe/trunk/test/CodeGen/PR2001-bitfield-reload.c
    cfe/trunk/test/CodeGen/bitfield-assign.c
    cfe/trunk/test/CodeGen/bitfield.c
    cfe/trunk/test/CodeGen/designated-initializers.c
    cfe/trunk/test/CodeGen/enum.c
    cfe/trunk/test/CodeGen/function-attributes.c
    cfe/trunk/test/CodeGen/indirect-goto.c
    cfe/trunk/test/CodeGen/kr-func-promote.c
    cfe/trunk/test/CodeGen/rdr-6095112-alias-references-inline.c
    cfe/trunk/test/CodeGen/rdr-6098585-default-after-caserange.c
    cfe/trunk/test/CodeGen/rdr-6098585-default-fallthrough-to-caserange.c
    cfe/trunk/test/CodeGen/rdr-6098585-empty-case-range.c
    cfe/trunk/test/CodeGen/rdr-6098585-fallthrough-to-empty-range.c
    cfe/trunk/test/CodeGen/rdr-6098585-unsigned-caserange.c
    cfe/trunk/test/CodeGen/rdr-6140807-alias-references-forward.c

Modified: cfe/trunk/test/CodeGen/2008-07-30-implicit-initialization.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2008-07-30-implicit-initialization.c?rev=63669&r1=63668&r2=63669&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/2008-07-30-implicit-initialization.c (original)
+++ cfe/trunk/test/CodeGen/2008-07-30-implicit-initialization.c Tue Feb  3 15:54:49 2009
@@ -1,4 +1,4 @@
-// RUN: clang --emit-llvm-bc -o - %s | opt --std-compile-opts | llvm-dis > %t &&
+// RUN: clang -triple i386-unknown-unknown --emit-llvm-bc -o - %s | opt --std-compile-opts | llvm-dis > %t &&
 // RUN: grep "ret i32" %t | count 2 &&
 // RUN: grep "ret i32 0" %t | count 2
 // <rdar://problem/6113085>

Modified: cfe/trunk/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c?rev=63669&r1=63668&r2=63669&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c (original)
+++ cfe/trunk/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c Tue Feb  3 15:54:49 2009
@@ -1,4 +1,4 @@
-// RUN: clang -emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis | grep "ret i32 1" | count 3
+// RUN: clang -triple i386-unknown-unknown -emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis | grep "ret i32 1" | count 3
 // <rdr://6115726>
 
 int f0() {

Modified: cfe/trunk/test/CodeGen/PR2001-bitfield-reload.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/PR2001-bitfield-reload.c?rev=63669&r1=63668&r2=63669&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/PR2001-bitfield-reload.c (original)
+++ cfe/trunk/test/CodeGen/PR2001-bitfield-reload.c Tue Feb  3 15:54:49 2009
@@ -1,4 +1,4 @@
-// RUN: clang --emit-llvm-bc -o - %s | opt --std-compile-opts | llvm-dis > %t &&
+// RUN: clang -triple i386-unknown-unknown --emit-llvm-bc -o - %s | opt --std-compile-opts | llvm-dis > %t &&
 // RUN: grep "ret i32" %t | count 1 &&
 // RUN: grep "ret i32 1" %t | count 1
 // PR2001

Modified: cfe/trunk/test/CodeGen/bitfield-assign.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/bitfield-assign.c?rev=63669&r1=63668&r2=63669&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/bitfield-assign.c (original)
+++ cfe/trunk/test/CodeGen/bitfield-assign.c Tue Feb  3 15:54:49 2009
@@ -4,12 +4,12 @@
 /* Check that we get one load for each simple assign and two for the
    compound assign (load the old value before the add then load again
    to store back). Also check that our g0 pattern is good. */
-// RUN: clang -O0 -emit-llvm -o %t %s &&
+// RUN: clang -triple i386-unknown-unknown -O0 -emit-llvm -o %t %s &&
 // RUN: grep 'load ' %t | count 5 &&
 // RUN: grep "@g0" %t | count 4 &&
 
 // Check that we got the right value.
-// RUN: clang -O3 -emit-llvm -o %t %s &&
+// RUN: clang -triple i386-unknown-unknown -O3 -emit-llvm -o %t %s &&
 // RUN: grep 'load ' %t | count 0 &&
 // RUN: grep "@g0" %t | count 0
 

Modified: cfe/trunk/test/CodeGen/bitfield.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/bitfield.c?rev=63669&r1=63668&r2=63669&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/bitfield.c (original)
+++ cfe/trunk/test/CodeGen/bitfield.c Tue Feb  3 15:54:49 2009
@@ -1,4 +1,4 @@
-// RUN: clang %s -emit-llvm-bc -o - | opt -std-compile-opts | llvm-dis > %t &&
+// RUN: clang -triple i386-unknown-unknown %s -emit-llvm-bc -o - | opt -std-compile-opts | llvm-dis > %t &&
 // RUN: grep "ret i32" %t | count 4 &&
 // RUN: grep "ret i32 1" %t | count 4
 

Modified: cfe/trunk/test/CodeGen/designated-initializers.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/designated-initializers.c?rev=63669&r1=63668&r2=63669&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/designated-initializers.c (original)
+++ cfe/trunk/test/CodeGen/designated-initializers.c Tue Feb  3 15:54:49 2009
@@ -1,4 +1,4 @@
-// RUN: clang %s -emit-llvm -o - | grep "<{ i8\* null, i32 1024 }>"
+// RUN: clang -triple i386-unknown-unknown %s -emit-llvm -o - | grep "<{ i8\* null, i32 1024 }>"
 
 struct foo {
     void *a;

Modified: cfe/trunk/test/CodeGen/enum.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/enum.c?rev=63669&r1=63668&r2=63669&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/enum.c (original)
+++ cfe/trunk/test/CodeGen/enum.c Tue Feb  3 15:54:49 2009
@@ -1,4 +1,4 @@
-// RUN: clang %s -emit-llvm-bc -o - | opt -std-compile-opts | llvm-dis | grep 'ret i32 6'
+// RUN: clang -triple i386-unknown-unknown %s -emit-llvm-bc -o - | opt -std-compile-opts | llvm-dis | grep 'ret i32 6'
 
 static enum { foo, bar = 1U } z;
 

Modified: cfe/trunk/test/CodeGen/function-attributes.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/function-attributes.c?rev=63669&r1=63668&r2=63669&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/function-attributes.c (original)
+++ cfe/trunk/test/CodeGen/function-attributes.c Tue Feb  3 15:54:49 2009
@@ -1,4 +1,4 @@
-// RUN: clang -emit-llvm -o %t %s &&
+// RUN: clang -triple i386-unknown-unknown -emit-llvm -o %t %s &&
 // RUN: grep 'define signext i8 @f0(i32 %x) nounwind' %t &&
 // RUN: grep 'define zeroext i8 @f1(i32 %x) nounwind' %t &&
 // RUN: grep 'define void @f2(i8 signext %x) nounwind' %t &&

Modified: cfe/trunk/test/CodeGen/indirect-goto.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/indirect-goto.c?rev=63669&r1=63668&r2=63669&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/indirect-goto.c (original)
+++ cfe/trunk/test/CodeGen/indirect-goto.c Tue Feb  3 15:54:49 2009
@@ -1,4 +1,4 @@
-// RUN: clang -emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis > %t &&
+// RUN: clang -triple i386-unknown-unknown -emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis > %t &&
 // RUN: grep "ret i32" %t | count 1 &&
 // RUN: grep "ret i32 210" %t | count 1
 

Modified: cfe/trunk/test/CodeGen/kr-func-promote.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/kr-func-promote.c?rev=63669&r1=63668&r2=63669&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/kr-func-promote.c (original)
+++ cfe/trunk/test/CodeGen/kr-func-promote.c Tue Feb  3 15:54:49 2009
@@ -1,4 +1,4 @@
-// RUN: clang %s -emit-llvm -o - | grep "i32 @a(i32)"
+// RUN: clang -triple i386-unknown-unknown %s -emit-llvm -o - | grep "i32 @a(i32)"
 
 int a();
 int a(x) short x; {return x;}

Modified: cfe/trunk/test/CodeGen/rdr-6095112-alias-references-inline.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/rdr-6095112-alias-references-inline.c?rev=63669&r1=63668&r2=63669&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/rdr-6095112-alias-references-inline.c (original)
+++ cfe/trunk/test/CodeGen/rdr-6095112-alias-references-inline.c Tue Feb  3 15:54:49 2009
@@ -1,4 +1,4 @@
-// RUN: clang --emit-llvm -o %t %s &&
+// RUN: clang -triple i386-unknown-unknown --emit-llvm -o %t %s &&
 // RUN: grep -e "alias" %t
 // XFAIL
 

Modified: cfe/trunk/test/CodeGen/rdr-6098585-default-after-caserange.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/rdr-6098585-default-after-caserange.c?rev=63669&r1=63668&r2=63669&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/rdr-6098585-default-after-caserange.c (original)
+++ cfe/trunk/test/CodeGen/rdr-6098585-default-after-caserange.c Tue Feb  3 15:54:49 2009
@@ -1,4 +1,4 @@
-// RUN: clang --emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis > %t &&
+// RUN: clang -triple i386-unknown-unknown --emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis > %t &&
 // RUN: grep "ret i32" %t | count 1 && 
 // RUN: grep "ret i32 10" %t | count 1
 

Modified: cfe/trunk/test/CodeGen/rdr-6098585-default-fallthrough-to-caserange.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/rdr-6098585-default-fallthrough-to-caserange.c?rev=63669&r1=63668&r2=63669&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/rdr-6098585-default-fallthrough-to-caserange.c (original)
+++ cfe/trunk/test/CodeGen/rdr-6098585-default-fallthrough-to-caserange.c Tue Feb  3 15:54:49 2009
@@ -1,4 +1,4 @@
-// RUN: clang --emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis > %t &&
+// RUN: clang -triple i386-unknown-unknown --emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis > %t &&
 // RUN: grep "ret i32 10" %t
 
 // Ensure that this doesn't compile to infinite loop in g() due to

Modified: cfe/trunk/test/CodeGen/rdr-6098585-empty-case-range.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/rdr-6098585-empty-case-range.c?rev=63669&r1=63668&r2=63669&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/rdr-6098585-empty-case-range.c (original)
+++ cfe/trunk/test/CodeGen/rdr-6098585-empty-case-range.c Tue Feb  3 15:54:49 2009
@@ -1,4 +1,4 @@
-// RUN: clang --emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis > %t &&
+// RUN: clang -triple i386-unknown-unknown --emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis > %t &&
 // RUN: grep "ret i32" %t | count 2 &&
 // RUN: grep "ret i32 3" %t | count 2
 

Modified: cfe/trunk/test/CodeGen/rdr-6098585-fallthrough-to-empty-range.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/rdr-6098585-fallthrough-to-empty-range.c?rev=63669&r1=63668&r2=63669&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/rdr-6098585-fallthrough-to-empty-range.c (original)
+++ cfe/trunk/test/CodeGen/rdr-6098585-fallthrough-to-empty-range.c Tue Feb  3 15:54:49 2009
@@ -1,4 +1,4 @@
-// RUN: clang --emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis > %t &&
+// RUN: clang -triple i386-unknown-unknown --emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis > %t &&
 // RUN: grep "ret i32 %" %t
 
 // Make sure return is not constant (if empty range is skipped or miscompiled)

Modified: cfe/trunk/test/CodeGen/rdr-6098585-unsigned-caserange.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/rdr-6098585-unsigned-caserange.c?rev=63669&r1=63668&r2=63669&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/rdr-6098585-unsigned-caserange.c (original)
+++ cfe/trunk/test/CodeGen/rdr-6098585-unsigned-caserange.c Tue Feb  3 15:54:49 2009
@@ -1,4 +1,4 @@
-// RUN: clang --emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis > %t &&
+// RUN: clang -triple i386-unknown-unknown --emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis > %t &&
 // RUN: grep "ret i32" %t | count 1 &&
 // RUN: grep "ret i32 3" %t | count 1
 

Modified: cfe/trunk/test/CodeGen/rdr-6140807-alias-references-forward.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/rdr-6140807-alias-references-forward.c?rev=63669&r1=63668&r2=63669&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/rdr-6140807-alias-references-forward.c (original)
+++ cfe/trunk/test/CodeGen/rdr-6140807-alias-references-forward.c Tue Feb  3 15:54:49 2009
@@ -1,4 +1,4 @@
-// RUN: clang -emit-llvm -o %t %s &&
+// RUN: clang -triple i386-unknown-unknown -emit-llvm -o %t %s &&
 // RUN: grep -e "@f = alias" %t | count 1 &&
 // RUN: grep -e "bitcast (i32 (i32)\\* @f to i32 (float)\\*)" %t | count 1
 // <rdar://problem/6140807>





More information about the cfe-commits mailing list