зеркало из https://github.com/microsoft/clang.git
Force triple for codegen tests which have expectations on output
types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63669 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
37629a4142
Коммит
0d7b091ffd
|
@ -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" %t | count 2 &&
|
||||||
// RUN: grep "ret i32 0" %t | count 2
|
// RUN: grep "ret i32 0" %t | count 2
|
||||||
// <rdar://problem/6113085>
|
// <rdar://problem/6113085>
|
||||||
|
|
|
@ -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>
|
// <rdr://6115726>
|
||||||
|
|
||||||
int f0() {
|
int f0() {
|
||||||
|
|
|
@ -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" %t | count 1 &&
|
||||||
// RUN: grep "ret i32 1" %t | count 1
|
// RUN: grep "ret i32 1" %t | count 1
|
||||||
// PR2001
|
// PR2001
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
/* Check that we get one load for each simple assign and two for the
|
/* 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
|
compound assign (load the old value before the add then load again
|
||||||
to store back). Also check that our g0 pattern is good. */
|
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 'load ' %t | count 5 &&
|
||||||
// RUN: grep "@g0" %t | count 4 &&
|
// RUN: grep "@g0" %t | count 4 &&
|
||||||
|
|
||||||
// Check that we got the right value.
|
// 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 'load ' %t | count 0 &&
|
||||||
// RUN: grep "@g0" %t | count 0
|
// RUN: grep "@g0" %t | count 0
|
||||||
|
|
||||||
|
|
|
@ -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" %t | count 4 &&
|
||||||
// RUN: grep "ret i32 1" %t | count 4
|
// RUN: grep "ret i32 1" %t | count 4
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
struct foo {
|
||||||
void *a;
|
void *a;
|
||||||
|
|
|
@ -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;
|
static enum { foo, bar = 1U } z;
|
||||||
|
|
||||||
|
|
|
@ -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 signext i8 @f0(i32 %x) nounwind' %t &&
|
||||||
// RUN: grep 'define zeroext i8 @f1(i32 %x) nounwind' %t &&
|
// RUN: grep 'define zeroext i8 @f1(i32 %x) nounwind' %t &&
|
||||||
// RUN: grep 'define void @f2(i8 signext %x) nounwind' %t &&
|
// RUN: grep 'define void @f2(i8 signext %x) nounwind' %t &&
|
||||||
|
|
|
@ -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" %t | count 1 &&
|
||||||
// RUN: grep "ret i32 210" %t | count 1
|
// RUN: grep "ret i32 210" %t | count 1
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
int a(x) short x; {return x;}
|
int a(x) short x; {return x;}
|
||||||
|
|
|
@ -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
|
// RUN: grep -e "alias" %t
|
||||||
// XFAIL
|
// XFAIL
|
||||||
|
|
||||||
|
|
|
@ -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" %t | count 1 &&
|
||||||
// RUN: grep "ret i32 10" %t | count 1
|
// RUN: grep "ret i32 10" %t | count 1
|
||||||
|
|
||||||
|
|
|
@ -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
|
// RUN: grep "ret i32 10" %t
|
||||||
|
|
||||||
// Ensure that this doesn't compile to infinite loop in g() due to
|
// Ensure that this doesn't compile to infinite loop in g() due to
|
||||||
|
|
|
@ -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" %t | count 2 &&
|
||||||
// RUN: grep "ret i32 3" %t | count 2
|
// RUN: grep "ret i32 3" %t | count 2
|
||||||
|
|
||||||
|
|
|
@ -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
|
// RUN: grep "ret i32 %" %t
|
||||||
|
|
||||||
// Make sure return is not constant (if empty range is skipped or miscompiled)
|
// Make sure return is not constant (if empty range is skipped or miscompiled)
|
||||||
|
|
|
@ -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" %t | count 1 &&
|
||||||
// RUN: grep "ret i32 3" %t | count 1
|
// RUN: grep "ret i32 3" %t | count 1
|
||||||
|
|
||||||
|
|
|
@ -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 "@f = alias" %t | count 1 &&
|
||||||
// RUN: grep -e "bitcast (i32 (i32)\\* @f to i32 (float)\\*)" %t | count 1
|
// RUN: grep -e "bitcast (i32 (i32)\\* @f to i32 (float)\\*)" %t | count 1
|
||||||
// <rdar://problem/6140807>
|
// <rdar://problem/6140807>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче