mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Remove explicit uses of -emit-llvm, the test infrastructure adds it
automatically. Use -S with llvm-gcc rather than -c, so tests can work when llvm-gcc is really dragonegg (which can output IR with -S but not -c). llvm-svn: 120158
This commit is contained in:
parent
9cd6a08245
commit
020f241883
@ -1,4 +1,4 @@
|
|||||||
/* RUN: %llvmgcc -xc %s -c -o - | llvm-dis | not grep __builtin_
|
/* RUN: %llvmgcc -xc %s -S -o - | not grep __builtin_
|
||||||
*
|
*
|
||||||
* __builtin_longjmp/setjmp should get transformed into llvm.setjmp/longjmp
|
* __builtin_longjmp/setjmp should get transformed into llvm.setjmp/longjmp
|
||||||
* just like explicit setjmp/longjmp calls are.
|
* just like explicit setjmp/longjmp calls are.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -xc %s -c -o %t.o
|
// RUN: %llvmgcc -xc %s -S -o %t.o
|
||||||
|
|
||||||
int test(_Bool pos, _Bool color) {
|
int test(_Bool pos, _Bool color) {
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep getelementptr
|
// RUN: %llvmgcc -xc %s -S -o - | grep getelementptr
|
||||||
|
|
||||||
// This should be turned into a tasty getelementptr instruction, not a nasty
|
// This should be turned into a tasty getelementptr instruction, not a nasty
|
||||||
// series of casts and address arithmetic.
|
// series of casts and address arithmetic.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep getelementptr
|
// RUN: %llvmgcc -xc %s -S -o - | grep getelementptr
|
||||||
|
|
||||||
char *test(char* C) {
|
char *test(char* C) {
|
||||||
return C-1; // Should turn into a GEP
|
return C-1; // Should turn into a GEP
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep getelementptr
|
// RUN: %llvmgcc -xc %s -S -o - | grep getelementptr
|
||||||
|
|
||||||
int *test(int *X, int Y) {
|
int *test(int *X, int Y) {
|
||||||
return X + Y;
|
return X + Y;
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | not grep dead_function
|
// RUN: %llvmgcc -xc %s -S -o - | not grep dead_function
|
||||||
|
|
||||||
extern __inline__ void dead_function() {}
|
extern __inline__ void dead_function() {}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.memcpy
|
// RUN: %llvmgcc -xc %s -S -o - | grep llvm.memcpy
|
||||||
|
|
||||||
struct X { int V[10000]; };
|
struct X { int V[10000]; };
|
||||||
struct X Global1, Global2;
|
struct X Global1, Global2;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.*address | count 4
|
// RUN: %llvmgcc -xc %s -S -o - | grep llvm.*address | count 4
|
||||||
|
|
||||||
void *test1() {
|
void *test1() {
|
||||||
return __builtin_return_address(1);
|
return __builtin_return_address(1);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -xc %s -w -c -o - | llc
|
// RUN: %llvmgcc -xc %s -w -S -o - | llc
|
||||||
// XFAIL: *
|
// XFAIL: *
|
||||||
// See PR2452
|
// See PR2452
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.memset | count 3
|
// RUN: %llvmgcc -xc %s -S -o - | grep llvm.memset | count 3
|
||||||
|
|
||||||
void *memset(void*, int, long);
|
void *memset(void*, int, long);
|
||||||
void bzero(void*, long);
|
void bzero(void*, long);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -O3 -xc %s -c -o - | llvm-dis | not grep builtin
|
// RUN: %llvmgcc -O3 -xc %s -S -o - | not grep builtin
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep constant
|
// RUN: %llvmgcc -xc %s -S -o - | grep constant
|
||||||
|
|
||||||
extern const int a[]; // 'a' should be marked constant even though it's external!
|
extern const int a[]; // 'a' should be marked constant even though it's external!
|
||||||
int foo () {
|
int foo () {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -xc -std=c99 %s -c -o - | llvm-dis | grep -v llvm.isunordered | not grep call
|
// RUN: %llvmgcc -xc -std=c99 %s -S -o - | grep -v llvm.isunordered | not grep call
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// RUN: %llvmgcc -c -emit-llvm %s -o - | \
|
// RUN: %llvmgcc -S %s -o - | \
|
||||||
// RUN: opt -std-compile-opts | llvm-dis | not grep {declare i32.*func}
|
// RUN: opt -std-compile-opts -S | not grep {declare i32.*func}
|
||||||
|
|
||||||
// There should not be an unresolved reference to func here. Believe it or not,
|
// There should not be an unresolved reference to func here. Believe it or not,
|
||||||
// the "expected result" is a function named 'func' which is internal and
|
// the "expected result" is a function named 'func' which is internal and
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep -v div
|
// RUN: %llvmgcc -xc %s -S -o - | grep -v div
|
||||||
|
|
||||||
int Diff(int *P, int *Q) { return P-Q; }
|
int Diff(int *P, int *Q) { return P-Q; }
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -o - | llvm-as | llvm-dis | \
|
// RUN: %llvmgcc %s -S -o - | llvm-as | llvm-dis | \
|
||||||
// RUN: grep llvm.used | grep foo | grep X
|
// RUN: grep llvm.used | grep foo | grep X
|
||||||
|
|
||||||
int X __attribute__((used));
|
int X __attribute__((used));
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -S -o - -emit-llvm %s
|
// RUN: %llvmgcc -S -o - %s
|
||||||
// PR1083
|
// PR1083
|
||||||
|
|
||||||
int svc_register (void (*dispatch) (int));
|
int svc_register (void (*dispatch) (int));
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm
|
// RUN: %llvmgcc %s -O3 -S -o -
|
||||||
// PR1173
|
// PR1173
|
||||||
|
|
||||||
struct S { char s; };
|
struct S { char s; };
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm
|
// RUN: %llvmgcc %s -O3 -S -o -
|
||||||
// PR1176
|
// PR1176
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm
|
// RUN: %llvmgcc %s -O3 -S -o -
|
||||||
// PR1175
|
// PR1175
|
||||||
|
|
||||||
struct empty { };
|
struct empty { };
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm
|
// RUN: %llvmgcc %s -O3 -S -o -
|
||||||
// PR1174
|
// PR1174
|
||||||
|
|
||||||
void zzz (char *s1, char *s2, int len, int *q)
|
void zzz (char *s1, char *s2, int len, int *q)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -S -fnested-functions -O0 -o - -emit-llvm %s
|
// RUN: %llvmgcc -S -fnested-functions -O0 -o - %s
|
||||||
// PR915
|
// PR915
|
||||||
|
|
||||||
extern void abort(void);
|
extern void abort(void);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// PR947
|
// PR947
|
||||||
// RUN: %llvmgcc %s -c -o -
|
// RUN: %llvmgcc %s -S -o -
|
||||||
|
|
||||||
void foo() {
|
void foo() {
|
||||||
void *ptr;
|
void *ptr;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -o - -emit-llvm
|
// RUN: %llvmgcc %s -S -o -
|
||||||
|
|
||||||
void foo(void *ptr, int test) {
|
void foo(void *ptr, int test) {
|
||||||
(ptr - ((void *) test + 0x2000));
|
(ptr - ((void *) test + 0x2000));
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Test the -fwritable-strings option.
|
// Test the -fwritable-strings option.
|
||||||
|
|
||||||
// RUN: %llvmgcc -O3 -S -o - -emit-llvm -fwritable-strings %s | \
|
// RUN: %llvmgcc -O3 -S -o - -fwritable-strings %s | \
|
||||||
// RUN: grep {internal global}
|
// RUN: grep {internal global}
|
||||||
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {private constant}
|
// RUN: %llvmgcc -O3 -S -o - %s | grep {private constant}
|
||||||
|
|
||||||
char *X = "foo";
|
char *X = "foo";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -O0 -S -o - -emit-llvm -fno-inline -fno-unit-at-a-time %s | \
|
// RUN: %llvmgcc -O0 -S -o - -fno-inline -fno-unit-at-a-time %s | \
|
||||||
// RUN: grep {call float @foo}
|
// RUN: grep {call float @foo}
|
||||||
|
|
||||||
// Make sure the call to foo is compiled as:
|
// Make sure the call to foo is compiled as:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm | grep mul
|
// RUN: %llvmgcc %s -O3 -S -o - | grep mul
|
||||||
// PR1233
|
// PR1233
|
||||||
|
|
||||||
float foo(int w, float A[][w], int g, int h) {
|
float foo(int w, float A[][w], int g, int h) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -o - | llc
|
// RUN: %llvmgcc %s -S -o - | llc
|
||||||
|
|
||||||
struct V { short X, Y; };
|
struct V { short X, Y; };
|
||||||
int bar() {
|
int bar() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -o - | llc
|
// RUN: %llvmgcc %s -S -o - | llc
|
||||||
|
|
||||||
union U { int x; float p; };
|
union U { int x; float p; };
|
||||||
void foo() {
|
void foo() {
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | grep xglobWeak | \
|
// RUN: %llvmgcc %s -S -O0 -o - | grep define | grep xglobWeak | \
|
||||||
// RUN: grep weak | count 1
|
// RUN: grep weak | count 1
|
||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | grep xextWeak | \
|
// RUN: %llvmgcc %s -S -O0 -o - | grep define | grep xextWeak | \
|
||||||
// RUN: grep weak | count 1
|
// RUN: grep weak | count 1
|
||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | \
|
// RUN: %llvmgcc %s -S -O0 -o - | grep define | \
|
||||||
// RUN: grep xWeaknoinline | grep weak | count 1
|
// RUN: grep xWeaknoinline | grep weak | count 1
|
||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | \
|
// RUN: %llvmgcc %s -S -O0 -o - | grep define | \
|
||||||
// RUN: grep xWeakextnoinline | grep weak | count 1
|
// RUN: grep xWeakextnoinline | grep weak | count 1
|
||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | \
|
// RUN: %llvmgcc %s -S -O0 -o - | grep define | \
|
||||||
// RUN: grep xglobnoWeak | grep -v internal | grep -v weak | \
|
// RUN: grep xglobnoWeak | grep -v internal | grep -v weak | \
|
||||||
// RUN: grep -v linkonce | count 1
|
// RUN: grep -v linkonce | count 1
|
||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | \
|
// RUN: %llvmgcc %s -S -O0 -o - | grep define | \
|
||||||
// RUN: grep xstatnoWeak | grep internal | count 1
|
// RUN: grep xstatnoWeak | grep internal | count 1
|
||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | \
|
// RUN: %llvmgcc %s -S -O0 -o - | grep define | \
|
||||||
// RUN: grep xextnoWeak | grep available_externally | grep -v weak | \
|
// RUN: grep xextnoWeak | grep available_externally | grep -v weak | \
|
||||||
// RUN: grep -v linkonce | count 1
|
// RUN: grep -v linkonce | count 1
|
||||||
inline int xglobWeak(int) __attribute__((weak));
|
inline int xglobWeak(int) __attribute__((weak));
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep declare | \
|
// RUN: %llvmgcc -std=c99 %s -S -O0 -o - | grep declare | \
|
||||||
// RUN: grep xglobWeak | grep extern_weak | count 1
|
// RUN: grep xglobWeak | grep extern_weak | count 1
|
||||||
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
|
// RUN: %llvmgcc -std=c99 %s -S -O0 -o - | grep define | \
|
||||||
// RUN: grep xextWeak | grep weak | count 1
|
// RUN: grep xextWeak | grep weak | count 1
|
||||||
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
|
// RUN: %llvmgcc -std=c99 %s -S -O0 -o - | grep define | \
|
||||||
// RUN: grep xWeaknoinline | grep weak | count 1
|
// RUN: grep xWeaknoinline | grep weak | count 1
|
||||||
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
|
// RUN: %llvmgcc -std=c99 %s -S -O0 -o - | grep define | \
|
||||||
// RUN: grep xWeakextnoinline | grep weak | count 1
|
// RUN: grep xWeakextnoinline | grep weak | count 1
|
||||||
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
|
// RUN: %llvmgcc -std=c99 %s -S -O0 -o - | grep define | \
|
||||||
// RUN: grep xglobnoWeak | grep available_externally | grep -v weak | \
|
// RUN: grep xglobnoWeak | grep available_externally | grep -v weak | \
|
||||||
// RUN: grep -v linkonce | count 1
|
// RUN: grep -v linkonce | count 1
|
||||||
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
|
// RUN: %llvmgcc -std=c99 %s -S -O0 -o - | grep define | \
|
||||||
// RUN: grep xstatnoWeak | grep internal | count 1
|
// RUN: grep xstatnoWeak | grep internal | count 1
|
||||||
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
|
// RUN: %llvmgcc -std=c99 %s -S -O0 -o - | grep define | \
|
||||||
// RUN: grep xextnoWeak | grep -v available_externally | grep -v weak | \
|
// RUN: grep xextnoWeak | grep -v available_externally | grep -v weak | \
|
||||||
// RUN: grep -v linkonce | count 1
|
// RUN: grep -v linkonce | count 1
|
||||||
inline int xglobWeak(int) __attribute__((weak));
|
inline int xglobWeak(int) __attribute__((weak));
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -o - | grep {call void asm}
|
// RUN: %llvmgcc %s -S -o - | grep {call void asm}
|
||||||
|
|
||||||
struct V { short X, Y; };
|
struct V { short X, Y; };
|
||||||
int bar() {
|
int bar() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -o - | grep {call void asm}
|
// RUN: %llvmgcc %s -S -o - | grep {call void asm}
|
||||||
|
|
||||||
union U { int x; char* p; };
|
union U { int x; char* p; };
|
||||||
void foo() {
|
void foo() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {volatile store}
|
// RUN: %llvmgcc -O3 -S -o - %s | grep {volatile store}
|
||||||
// PR1352
|
// PR1352
|
||||||
|
|
||||||
struct foo {
|
struct foo {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// PR 1346
|
// PR 1346
|
||||||
// RUN: %llvmgcc -c %s -o /dev/null
|
// RUN: %llvmgcc -S %s -o /dev/null
|
||||||
extern bar(void *);
|
extern bar(void *);
|
||||||
|
|
||||||
void f(void *cd) {
|
void f(void *cd) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -c %s -o /dev/null
|
// RUN: %llvmgcc -S %s -o /dev/null
|
||||||
static char *str;
|
static char *str;
|
||||||
|
|
||||||
static const struct {
|
static const struct {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// PR 1278
|
// PR 1278
|
||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep {struct.s} | not grep "4 x i8] zeroinitializer"
|
// RUN: %llvmgcc %s -S -O0 -o - | grep {struct.s} | not grep "4 x i8] zeroinitializer"
|
||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | not grep "i32 0, i32 2"
|
// RUN: %llvmgcc %s -S -O0 -o - | not grep "i32 0, i32 2"
|
||||||
struct s {
|
struct s {
|
||||||
double d1;
|
double d1;
|
||||||
int s1;
|
int s1;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -c -g %s -o /dev/null
|
// RUN: %llvmgcc -S -g %s -o /dev/null
|
||||||
|
|
||||||
static unsigned char out[]={0,1};
|
static unsigned char out[]={0,1};
|
||||||
static const unsigned char str1[]="1";
|
static const unsigned char str1[]="1";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// PR 1419
|
// PR 1419
|
||||||
|
|
||||||
// RUN: %llvmgcc -xc -O2 %s -c -o - | llvm-dis | grep "ret i32 1"
|
// RUN: %llvmgcc -xc -O2 %s -S -o - | grep "ret i32 1"
|
||||||
struct A {
|
struct A {
|
||||||
short x;
|
short x;
|
||||||
long long :0;
|
long long :0;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// PR 1417
|
// PR 1417
|
||||||
|
|
||||||
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep "struct.anon = type \{\}"
|
// RUN: %llvmgcc -xc %s -S -o - | grep "struct.anon = type \{\}"
|
||||||
|
|
||||||
struct { } *X;
|
struct { } *X;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -S -o - -emit-llvm %s | grep memcpy
|
// RUN: %llvmgcc -S -o - %s | grep memcpy
|
||||||
// PR1421
|
// PR1421
|
||||||
|
|
||||||
struct A {
|
struct A {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -O2 -c -emit-llvm %s -o - | llvm-dis | grep call
|
// RUN: %llvmgcc -O2 -S %s -o - | grep call
|
||||||
|
|
||||||
static int bar(int x, int y) __attribute__((noinline));
|
static int bar(int x, int y) __attribute__((noinline));
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// RUN: %llvmgcc -c -emit-llvm %s -o - | llvm-dis | grep llvm.global.annotations
|
// RUN: %llvmgcc -S %s -o - | grep llvm.global.annotations
|
||||||
// RUN: %llvmgcc -c -emit-llvm %s -o - | llvm-dis | grep llvm.var.annotation | count 3
|
// RUN: %llvmgcc -S %s -o - | grep llvm.var.annotation | count 3
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -o - -S -emit-llvm -O3 | grep {i8 signext}
|
// RUN: %llvmgcc %s -o - -S -O3 | grep {i8 signext}
|
||||||
// PR1513
|
// PR1513
|
||||||
|
|
||||||
struct s{
|
struct s{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -c -emit-llvm %s -o - | llvm-dis | grep noalias
|
// RUN: %llvmgcc -S %s -o - | grep noalias
|
||||||
|
|
||||||
void foo(int * __restrict myptr1, int * myptr2) {
|
void foo(int * __restrict myptr1, int * myptr2) {
|
||||||
myptr1[0] = 0;
|
myptr1[0] = 0;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {align 1} | count 2
|
// RUN: %llvmgcc -O3 -S -o - %s | grep {align 1} | count 2
|
||||||
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llc
|
// RUN: %llvmgcc -O3 -S -o - %s | llc
|
||||||
|
|
||||||
struct p {
|
struct p {
|
||||||
char a;
|
char a;
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
// RUN: %llvmgcc -O2 -c %s -o /dev/null
|
// RUN: %llvmgcc -O2 -S %s -o /dev/null
|
||||||
void f(_Complex float z);
|
void f(_Complex float z);
|
||||||
void g() { f(1.0i); }
|
void g() { f(1.0i); }
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -xc -Os -c %s -o /dev/null
|
// RUN: %llvmgcc -xc -Os -S %s -o /dev/null
|
||||||
// PR1641
|
// PR1641
|
||||||
|
|
||||||
struct A {
|
struct A {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// RUN: %llvmgcc -S -emit-llvm %s -o - | grep llvm.gcroot
|
// RUN: %llvmgcc -S %s -o - | grep llvm.gcroot
|
||||||
// RUN: %llvmgcc -S -emit-llvm %s -o - | grep llvm.gcroot | count 6
|
// RUN: %llvmgcc -S %s -o - | grep llvm.gcroot | count 6
|
||||||
// RUN: %llvmgcc -S -emit-llvm %s -o - | llvm-as
|
// RUN: %llvmgcc -S %s -o - | llvm-as
|
||||||
|
|
||||||
typedef struct foo_s
|
typedef struct foo_s
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -c %s -o /dev/null
|
// RUN: %llvmgcc -S %s -o /dev/null
|
||||||
void bork() {
|
void bork() {
|
||||||
int Qux[33] = {0};
|
int Qux[33] = {0};
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -S %s -emit-llvm -o - | grep "signext" | count 4
|
// RUN: %llvmgcc -S %s -o - | grep "signext" | count 4
|
||||||
|
|
||||||
signed char foo1() { return 1; }
|
signed char foo1() { return 1; }
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | not grep readonly
|
// RUN: %llvmgcc -O3 -S -o - %s | not grep readonly
|
||||||
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | not grep readnone
|
// RUN: %llvmgcc -O3 -S -o - %s | not grep readnone
|
||||||
|
|
||||||
|
|
||||||
// The struct being passed byval means that we cannot mark the
|
// The struct being passed byval means that we cannot mark the
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -Werror -c %s -o /dev/null
|
// RUN: %llvmgcc -Werror -S %s -o /dev/null
|
||||||
#pragma mark LLVM's world
|
#pragma mark LLVM's world
|
||||||
#ifdef DO_ERROR
|
#ifdef DO_ERROR
|
||||||
#error LLVM's world
|
#error LLVM's world
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -o - | grep llvm.global_ctors
|
// RUN: %llvmgcc %s -S -o - | grep llvm.global_ctors
|
||||||
int __attribute__((constructor)) foo(void) {
|
int __attribute__((constructor)) foo(void) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -o - | grep llvm.atomic
|
// RUN: %llvmgcc %s -S -o - | grep llvm.atomic
|
||||||
// XFAIL: sparc-sun-solaris2|arm
|
// XFAIL: sparc-sun-solaris2|arm
|
||||||
// Feature currently implemented only for x86, alpha, powerpc.
|
// Feature currently implemented only for x86, alpha, powerpc.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// RUN: %llvmgcc %s -S -fno-unit-at-a-time -emit-llvm -O0 -o - | not grep sabrina
|
// RUN: %llvmgcc %s -S -fno-unit-at-a-time -O0 -o - | not grep sabrina
|
||||||
// RUN: %llvmgcc %s -S -funit-at-a-time -emit-llvm -O0 -o - | not grep sabrina
|
// RUN: %llvmgcc %s -S -funit-at-a-time -O0 -o - | not grep sabrina
|
||||||
|
|
||||||
static inline int sabrina (void) __attribute__((always_inline));
|
static inline int sabrina (void) __attribute__((always_inline));
|
||||||
static inline int sabrina (void)
|
static inline int sabrina (void)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* RUN: %llvmgcc %s -S -o - -emit-llvm -O0 | grep {zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer}
|
/* RUN: %llvmgcc %s -S -o - -O0 | grep {zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer}
|
||||||
|
|
||||||
The FE must generate padding here both at the end of each PyG_Head and
|
The FE must generate padding here both at the end of each PyG_Head and
|
||||||
between array elements. Reduced from Python. */
|
between array elements. Reduced from Python. */
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* RUN: %llvmgcc %s -S -o - -emit-llvm -O0 | grep zeroinitializer | count 1
|
/* RUN: %llvmgcc %s -S -o - -O0 | grep zeroinitializer | count 1
|
||||||
|
|
||||||
The FE must not generate padding here between array elements. PR 2533. */
|
The FE must not generate padding here between array elements. PR 2533. */
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -c %s
|
// RUN: %llvmgcc -S %s
|
||||||
// PR2987
|
// PR2987
|
||||||
struct S2045
|
struct S2045
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -S -emit-llvm -o - %s | grep weak
|
// RUN: %llvmgcc -S -o - %s | grep weak
|
||||||
// PR2691
|
// PR2691
|
||||||
|
|
||||||
void init_IRQ(void) __attribute__((weak, alias("native_init_IRQ")));
|
void init_IRQ(void) __attribute__((weak, alias("native_init_IRQ")));
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -O2 -o -
|
// RUN: %llvmgcc %s -S -O2 -o -
|
||||||
// PR3028
|
// PR3028
|
||||||
|
|
||||||
int g_187;
|
int g_187;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -c -emit-llvm %s -o - | llvm-dis | grep llvm.ptr.annotation | count 3
|
// RUN: %llvmgcc -S %s -o - | grep llvm.ptr.annotation | count 3
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -O1 -o -
|
// RUN: %llvmgcc %s -S -O1 -o -
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -O2 -o %t.s
|
// RUN: %llvmgcc %s -S -O2 -o %t.s
|
||||||
// RUN: grep {call i32 .*printf.*argc} %t.s | count 3
|
// RUN: grep {call i32 .*printf.*argc} %t.s | count 3
|
||||||
// RUN: not grep __block_holder_tmp %t.s
|
// RUN: not grep __block_holder_tmp %t.s
|
||||||
// rdar://5865221
|
// rdar://5865221
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -c -g -o /dev/null
|
// RUN: %llvmgcc %s -S -g -o /dev/null
|
||||||
// XTARGET: darwin,linux
|
// XTARGET: darwin,linux
|
||||||
// XFAIL: *
|
// XFAIL: *
|
||||||
void foo() {}
|
void foo() {}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -S -m32 -mregparm=3 %s -emit-llvm -o - | grep {inreg %action}
|
// RUN: %llvmgcc -S -m32 -mregparm=3 %s -o - | grep {inreg %action}
|
||||||
// XFAIL: *
|
// XFAIL: *
|
||||||
// XTARGET: x86,i386,i686
|
// XTARGET: x86,i386,i686
|
||||||
// PR3967
|
// PR3967
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -o - | FileCheck %s
|
// RUN: %llvmgcc %s -S -o - | FileCheck %s
|
||||||
// XFAIL: sparc
|
// XFAIL: sparc
|
||||||
// rdar://7536390
|
// rdar://7536390
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -c -O3 -emit-llvm -o - | llc -march=x86-64 -mtriple=x86_64-apple-darwin | FileCheck %s
|
// RUN: %llvmgcc %s -S -O3 -o - | llc -march=x86-64 -mtriple=x86_64-apple-darwin | FileCheck %s
|
||||||
// r9 used to be clobbered before its value was moved to r10. 7993104.
|
// r9 used to be clobbered before its value was moved to r10. 7993104.
|
||||||
|
|
||||||
void foo(int x, int y) {
|
void foo(int x, int y) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -o - | FileCheck %s
|
// RUN: %llvmgcc %s -S -o - | FileCheck %s
|
||||||
// Radar 8026855
|
// Radar 8026855
|
||||||
|
|
||||||
int test (void *src) {
|
int test (void *src) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -c -m32 -fasm-blocks -o /dev/null
|
// RUN: %llvmgcc %s -S -m32 -fasm-blocks -o /dev/null
|
||||||
// This should not warn about unreferenced label. 7729514.
|
// This should not warn about unreferenced label. 7729514.
|
||||||
// XFAIL: *
|
// XFAIL: *
|
||||||
// XTARGET: x86,i386,i686
|
// XTARGET: x86,i386,i686
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -emit-llvm -S -o - | FileCheck %s
|
// RUN: %llvmgcc %s -S -o - | FileCheck %s
|
||||||
// PR 5995
|
// PR 5995
|
||||||
struct s {
|
struct s {
|
||||||
int word;
|
int word;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -c -o - | llvm-dis | grep llvm.global_ctors
|
// RUN: %llvmgcc %s -S -o - | grep llvm.global_ctors
|
||||||
|
|
||||||
void foo() __attribute__((constructor));
|
void foo() __attribute__((constructor));
|
||||||
void foo() {
|
void foo() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* RUN: %llvmgcc %s -S -o - -emit-llvm -O3 | grep {call.*memcpy}
|
/* RUN: %llvmgcc %s -S -o - -O3 | grep {call.*memcpy}
|
||||||
|
|
||||||
This should compile into a memcpy from a global, not 128 stores. */
|
This should compile into a memcpy from a global, not 128 stores. */
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -c -Os -emit-llvm -o - | llc -march=x86 -mtriple=i386-apple-darwin10 | FileCheck %s
|
// RUN: %llvmgcc %s -S -Os -o - | llc -march=x86 -mtriple=i386-apple-darwin10 | FileCheck %s
|
||||||
|
|
||||||
extern void func(const char *, const char *);
|
extern void func(const char *, const char *);
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep extern_weak
|
// RUN: %llvmgcc -O3 -S -o - %s | grep extern_weak
|
||||||
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llc
|
// RUN: %llvmgcc -O3 -S -o - %s | llc
|
||||||
|
|
||||||
#if !defined(__linux__) && !defined(__FreeBSD__) && \
|
#if !defined(__linux__) && !defined(__FreeBSD__) && \
|
||||||
!defined(__OpenBSD__) && !defined(__CYGWIN__) && !defined(__DragonFly__)
|
!defined(__OpenBSD__) && !defined(__CYGWIN__) && !defined(__DragonFly__)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -o - | FileCheck %s
|
// RUN: %llvmgcc %s -S -o - | FileCheck %s
|
||||||
|
|
||||||
// rdar://7270273
|
// rdar://7270273
|
||||||
void foo() __attribute__((aligned (64)));
|
void foo() __attribute__((aligned (64)));
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
// RUN: %llvmgcc %s -emit-llvm -S -o - | grep {hidden global}
|
// RUN: %llvmgcc %s -S -o - | grep {hidden global}
|
||||||
|
|
||||||
int X __attribute__ ((__visibility__ ("hidden"))) = 123;
|
int X __attribute__ ((__visibility__ ("hidden"))) = 123;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o -
|
// RUN: %llvmgcc %s -S -O0 -o -
|
||||||
// RUN: %llvmgcc %s -S -emit-llvm -O1 -o -
|
// RUN: %llvmgcc %s -S -O1 -o -
|
||||||
// rdar://6518089
|
// rdar://6518089
|
||||||
|
|
||||||
static int bar();
|
static int bar();
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// llvm-gcc -O1+ should run simplify libcalls, O0 shouldn't
|
// llvm-gcc -O1+ should run simplify libcalls, O0 shouldn't
|
||||||
// and -fno-builtins shouldn't.
|
// and -fno-builtins shouldn't.
|
||||||
// -fno-math-errno should emit an llvm intrinsic, -fmath-errno should not.
|
// -fno-math-errno should emit an llvm intrinsic, -fmath-errno should not.
|
||||||
// RUN: %llvmgcc %s -S -fno-math-errno -emit-llvm -O0 -o - | grep {call.*exp2\\.f64}
|
// RUN: %llvmgcc %s -S -fno-math-errno -O0 -o - | grep {call.*exp2\\.f64}
|
||||||
// RUN: %llvmgcc %s -S -fmath-errno -emit-llvm -O0 -o - | grep {call.*exp2}
|
// RUN: %llvmgcc %s -S -fmath-errno -O0 -o - | grep {call.*exp2}
|
||||||
// RUN: %llvmgcc %s -S -emit-llvm -O1 -o - | grep {call.*ldexp}
|
// RUN: %llvmgcc %s -S -O1 -o - | grep {call.*ldexp}
|
||||||
// RUN: %llvmgcc %s -S -emit-llvm -O3 -fno-builtin -o - | grep {call.*exp2}
|
// RUN: %llvmgcc %s -S -O3 -fno-builtin -o - | grep {call.*exp2}
|
||||||
|
|
||||||
double exp2(double);
|
double exp2(double);
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// llvm-gcc -O1+ should run simplify libcalls, O0 shouldn't
|
// llvm-gcc -O1+ should run simplify libcalls, O0 shouldn't
|
||||||
// and -fno-builtins shouldn't.
|
// and -fno-builtins shouldn't.
|
||||||
// -fno-math-errno should emit an llvm intrinsic, -fmath-errno should not.
|
// -fno-math-errno should emit an llvm intrinsic, -fmath-errno should not.
|
||||||
// RUN: %llvmgcc %s -S -fno-math-errno -emit-llvm -O0 -o - | grep {call.*exp2\\..*f}
|
// RUN: %llvmgcc %s -S -fno-math-errno -O0 -o - | grep {call.*exp2\\..*f}
|
||||||
// RUN: %llvmgcc %s -S -fmath-errno -emit-llvm -O0 -o - | grep {call.*exp2l}
|
// RUN: %llvmgcc %s -S -fmath-errno -O0 -o - | grep {call.*exp2l}
|
||||||
// RUN: %llvmgcc %s -S -emit-llvm -O1 -o - | grep {call.*ldexp}
|
// RUN: %llvmgcc %s -S -O1 -o - | grep {call.*ldexp}
|
||||||
// RUN: %llvmgcc %s -S -emit-llvm -O3 -fno-builtin -o - | grep {call.*exp2l}
|
// RUN: %llvmgcc %s -S -O3 -fno-builtin -o - | grep {call.*exp2l}
|
||||||
|
|
||||||
// If this fails for you because your target doesn't support long double,
|
// If this fails for you because your target doesn't support long double,
|
||||||
// please xfail the test.
|
// please xfail the test.
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// llvm-gcc -O1+ should run simplify libcalls, O0 shouldn't
|
// llvm-gcc -O1+ should run simplify libcalls, O0 shouldn't
|
||||||
// and -fno-builtins shouldn't.
|
// and -fno-builtins shouldn't.
|
||||||
// -fno-math-errno should emit an llvm intrinsic, -fmath-errno should not.
|
// -fno-math-errno should emit an llvm intrinsic, -fmath-errno should not.
|
||||||
// RUN: %llvmgcc %s -S -emit-llvm -fno-math-errno -O0 -o - | grep {call.*exp2\\.f32}
|
// RUN: %llvmgcc %s -S -fno-math-errno -O0 -o - | grep {call.*exp2\\.f32}
|
||||||
// RUN: %llvmgcc %s -S -emit-llvm -fmath-errno -O0 -o - | grep {call.*exp2f}
|
// RUN: %llvmgcc %s -S -fmath-errno -O0 -o - | grep {call.*exp2f}
|
||||||
// RUN: %llvmgcc %s -S -emit-llvm -O1 -o - | grep {call.*ldexp}
|
// RUN: %llvmgcc %s -S -O1 -o - | grep {call.*ldexp}
|
||||||
// RUN: %llvmgcc %s -S -emit-llvm -O3 -fno-builtin -o - | grep {call.*exp2f}
|
// RUN: %llvmgcc %s -S -O3 -fno-builtin -o - | grep {call.*exp2f}
|
||||||
|
|
||||||
float exp2f(float);
|
float exp2f(float);
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep {= internal global} | count 4
|
// RUN: %llvmgcc %s -S -O0 -o - | grep {= internal global} | count 4
|
||||||
// PR 3518
|
// PR 3518
|
||||||
// Some of the objects were coming out as unintialized (external) before 3518
|
// Some of the objects were coming out as unintialized (external) before 3518
|
||||||
// was fixed. Internal names are different between llvm-gcc and clang so they
|
// was fixed. Internal names are different between llvm-gcc and clang so they
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | FileCheck %s
|
// RUN: %llvmgcc %s -S -O0 -o - | FileCheck %s
|
||||||
// PR 4349
|
// PR 4349
|
||||||
|
|
||||||
union reg
|
union reg
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | FileCheck %s
|
// RUN: %llvmgcc %s -S -O0 -o - | FileCheck %s
|
||||||
// PR 5406
|
// PR 5406
|
||||||
|
|
||||||
// XFAIL: *
|
// XFAIL: *
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// RUN: %llvmgcc %s -c -m32 -o /dev/null
|
// RUN: %llvmgcc %s -S -m32 -o /dev/null
|
||||||
// RUN: %llvmgcc %s -c -O1 -m32 -emit-llvm -o - | llc -march=x86 -mtriple=i386-apple-darwin9.7 | FileCheck %s -check-prefix=DARWIN
|
// RUN: %llvmgcc %s -S -O1 -m32 -o - | llc -march=x86 -mtriple=i386-apple-darwin9.7 | FileCheck %s -check-prefix=DARWIN
|
||||||
|
|
||||||
unsigned int func(void *A) {
|
unsigned int func(void *A) {
|
||||||
// DARWIN: roll $27
|
// DARWIN: roll $27
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep sret | count 5
|
// RUN: %llvmgcc %s -S -O0 -o - | grep sret | count 5
|
||||||
|
|
||||||
struct abc {
|
struct abc {
|
||||||
long a;
|
long a;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep sret | count 2
|
// RUN: %llvmgcc %s -S -O0 -o - | grep sret | count 2
|
||||||
|
|
||||||
struct abc {
|
struct abc {
|
||||||
long a;
|
long a;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc %s -S -emit-llvm -o - | llc
|
// RUN: %llvmgcc %s -S -o - | llc
|
||||||
|
|
||||||
void bork() {
|
void bork() {
|
||||||
char Qux[33] = {0};
|
char Qux[33] = {0};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user