mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	For PR1319: Upgrade to new test harness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36082 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
				
			|||||||
/* RUN: %llvmgcc -xc %s -c -o - | dis | not grep cast
 | 
					/* RUN: %llvmgcc -xc %s -c -o - | llvm-dis | not grep cast
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void test(int* array, long long N) {
 | 
					void test(int* array, long long N) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
/* RUN: %llvmgcc -xc %s -c -o - | dis | not grep __builtin_
 | 
					/* RUN: %llvmgcc -xc %s -c -o - | llvm-dis | 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 - | llvm-dis | grep 'llvm.*address' | wc -l | grep 4
 | 
					// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.*address | wc -l | grep 4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void *test1() {
 | 
					void *test1() {
 | 
				
			||||||
  return __builtin_return_address(1);
 | 
					  return __builtin_return_address(1);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
// RUN: %llvmgcc %s -S -o - | not grep 'foo\* sub'
 | 
					// RUN: %llvmgcc %s -S -o - | not grep {foo\\* sub}
 | 
				
			||||||
// This should not produce a subtrace constantexpr of a pointer
 | 
					// This should not produce a subtrace constantexpr of a pointer
 | 
				
			||||||
struct foo {
 | 
					struct foo {
 | 
				
			||||||
  int Y;
 | 
					  int Y;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,5 @@
 | 
				
			|||||||
// RUN: %llvmgcc -S 2004-11-27-StaticFunctionRedeclare.c -o - | gccas | llvm-dis | not grep 'declare int.*func'
 | 
					// RUN: %llvmgcc -c -emit-llvm 2004-11-27-StaticFunctionRedeclare.c -o - | \
 | 
				
			||||||
 | 
					// RUN:   opt -std-compile-opts | llvm-dis | not grep {declare int.*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,4 +1,4 @@
 | 
				
			|||||||
// RUN: %llvmgcc -xc %s -S -o - | grep 'internal constant '
 | 
					// RUN: %llvmgcc -xc %s -S -o - | grep {internal constant }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// The synthetic global made by the CFE for big initializer should be marked
 | 
					// The synthetic global made by the CFE for big initializer should be marked
 | 
				
			||||||
// constant.
 | 
					// constant.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,3 @@
 | 
				
			|||||||
// RUN: %llvmgcc %s -S -o - && \
 | 
					 | 
				
			||||||
// RUN: %llvmgcc %s -S -o - | llvm-as -o /dev/null -f
 | 
					// RUN: %llvmgcc %s -S -o - | llvm-as -o /dev/null -f
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const double _Complex x[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; 
 | 
					const double _Complex x[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; 
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,4 @@
 | 
				
			|||||||
// RUN: %llvmgcc %s -S -o - | llvm-as | opt -std-compile-opts &&
 | 
					// RUN: %llvmgcc %s -S -o - | llvm-as | opt -std-compile-opts | llc | \
 | 
				
			||||||
// RUN: %llvmgcc %s -S -o - | llvm-as | opt -std-compile-opts | llc &&
 | 
					 | 
				
			||||||
// RUN: %llvmgcc %s -S -o - | llvm-as | llc -std-compile-opts | llc | \
 | 
					 | 
				
			||||||
// RUN:    not grep _foo2
 | 
					// RUN:    not grep _foo2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void foo() __asm__("foo2");
 | 
					void foo() __asm__("foo2");
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,5 @@
 | 
				
			|||||||
// RUN: %llvmgcc %s -S -emit-llvm -o - | llvm-as | llvm-dis | grep llvm.used | grep foo | grep X
 | 
					// RUN: %llvmgcc %s -S -emit-llvm -o - | llvm-as | llvm-dis | \
 | 
				
			||||||
 | 
					// RUN:   grep llvm.used | grep foo | grep X
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int X __attribute__((used));
 | 
					int X __attribute__((used));
 | 
				
			||||||
int Y;
 | 
					int Y;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
// RUN: %llvmgcc %s -S -g -o - | grep 'llvm.dbg.stoppoint.*i32 14'
 | 
					// RUN: %llvmgcc %s -S -g -o - | grep {llvm.dbg.stoppoint.*i32 14}
 | 
				
			||||||
// PR664: ensure that line #'s are emitted for declarations
 | 
					// PR664: ensure that line #'s are emitted for declarations
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,4 @@
 | 
				
			|||||||
// RUN: %llvmgcc -S %s -o - | grep 'llvm.ctlz.i32(i32'
 | 
					// RUN: %llvmgcc -S %s -o - | grep {llvm.ctlz.i32(i32} | wc -l | grep 2
 | 
				
			||||||
// RUNMEIFWEHADSIGNEDTYPES: %llvmgcc -S %s -o - | not grep 'llvm.ctlz.i32(i32'
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
unsigned t2(unsigned X) {
 | 
					unsigned t2(unsigned X) {
 | 
				
			||||||
  return __builtin_clz(X);
 | 
					  return __builtin_clz(X);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
// RUN: %llvmgcc %s -S -o - | llvm-as | opt -std-compile-opts | \
 | 
					// RUN: %llvmgcc %s -S -o - | llvm-as | opt -std-compile-opts | \
 | 
				
			||||||
// RUN:    llvm-dis | grep foo[12345] | wc -l | grep 5
 | 
					// RUN:    llvm-dis | grep {foo\[12345\]} | wc -l | grep 5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
__asm__ ("foo1");
 | 
					__asm__ ("foo1");
 | 
				
			||||||
__asm__ ("foo2");
 | 
					__asm__ ("foo2");
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
// RUN: %llvmgcc %s -S -o - | llvm-as | opt -std-compile-opts | \
 | 
					// RUN: %llvmgcc %s -S -o - | llvm-as | opt -std-compile-opts | \
 | 
				
			||||||
// RUN:    llvm-dis | grep '@nate.*internal global i32 0'
 | 
					// RUN:    llvm-dis | grep {@nate.*internal global i32 0}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct X { int *XX; int Y;};
 | 
					struct X { int *XX; int Y;};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,5 @@
 | 
				
			|||||||
// RUN: %llvmgcc %s -S -o /dev/null &&
 | 
					// RUN: %llvmgcc %s -S -o - | grep {ext: xorl %eax, eax; movl}
 | 
				
			||||||
// RUN: %llvmgcc %s -S -o - | grep 'ext: xorl %eax, eax; movl' &&
 | 
					// RUN: %llvmgcc %s -S -o - | grep {nonext: xorl %eax, %eax; mov}
 | 
				
			||||||
// RUN: %llvmgcc %s -S -o - | grep 'nonext: xorl %eax, %eax; mov'
 | 
					 | 
				
			||||||
// PR924
 | 
					// PR924
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void bar() {
 | 
					void bar() {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
// RUN: %llvmgcc -O3 -S %s -o - | grep 'fcmp ord float %X, %Y'
 | 
					// RUN: %llvmgcc -O3 -S %s -o - | grep {fcmp ord float %X, %Y}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int test2(float X, float Y) {
 | 
					int test2(float X, float Y) {
 | 
				
			||||||
  return !__builtin_isunordered(X, Y);
 | 
					  return !__builtin_isunordered(X, Y);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,6 @@
 | 
				
			|||||||
// Verify that the %c modifier works and strips off any prefixes from immediates.
 | 
					// Verify that the %c modifier works and strips off any prefixes from 
 | 
				
			||||||
// RUN: %llvmgcc -S %s -o - | llvm-as | llc | grep 'pickANumber: 789514'
 | 
					// immediates.
 | 
				
			||||||
 | 
					// RUN: %llvmgcc -S %s -o - | llvm-as | llc | grep {pickANumber: 789514}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void foo() {
 | 
					void foo() {
 | 
				
			||||||
  __asm__         volatile("/* " "pickANumber" ": %c0 */"::"i"(0xC0C0A));
 | 
					  __asm__         volatile("/* " "pickANumber" ": %c0 */"::"i"(0xC0C0A));
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,8 @@
 | 
				
			|||||||
// Test the -fwritable-strings option.
 | 
					// Test the -fwritable-strings option.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// RUN: %llvmgcc -O3 -S -o - -emit-llvm -fwritable-strings %s | grep 'internal global' &&
 | 
					// RUN: %llvmgcc -O3 -S -o - -emit-llvm -fwritable-strings %s | \
 | 
				
			||||||
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep 'internal constant'
 | 
					// RUN:    grep {internal global}
 | 
				
			||||||
 | 
					// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {internal constant}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
char *X = "foo";
 | 
					char *X = "foo";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,5 @@
 | 
				
			|||||||
// RUN: %llvmgcc -O0 -S -o - -emit-llvm -fno-inline -fno-unit-at-a-time %s | grep 'call float @foo'
 | 
					// RUN: %llvmgcc -O0 -S -o - -emit-llvm -fno-inline -fno-unit-at-a-time %s | \
 | 
				
			||||||
 | 
					// RUN:   grep {call float @foo}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Make sure the call to foo is compiled as:
 | 
					// Make sure the call to foo is compiled as:
 | 
				
			||||||
//  call float @foo()
 | 
					//  call float @foo()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,7 @@
 | 
				
			|||||||
// Testcase for PR1242
 | 
					// Testcase for PR1242
 | 
				
			||||||
// RUN: %llvmgcc -S %s -o - | grep datalayout | \
 | 
					// RUN: %llvmgcc -S %s -o - | grep datalayout | \
 | 
				
			||||||
// RUN:    not grep '"[Ee]-p:[36][24]:[36][24]"'
 | 
					// RUN:    not grep {"\[Ee\]-p:\[36\]\[24\]:\[36\]\[24\]"}
 | 
				
			||||||
 | 
					// END.
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
#define NDIM 3
 | 
					#define NDIM 3
 | 
				
			||||||
#define BODY 01
 | 
					#define BODY 01
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
// RUN: %llvmgcc %s -S -emit-llvm -o - | grep 'call i32 asm'
 | 
					// RUN: %llvmgcc %s -S -emit-llvm -o - | grep {call i32 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 i32 asm'
 | 
					// RUN: %llvmgcc %s -S -emit-llvm -o - | grep {call i32 asm}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
union U { int x; char* p; };
 | 
					union U { int x; char* p; };
 | 
				
			||||||
void foo() {
 | 
					void foo() {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,10 +1,19 @@
 | 
				
			|||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | grep xglobWeak | grep weak | wc -l | grep 1
 | 
					// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | grep xglobWeak | \
 | 
				
			||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | grep xextWeak | grep weak | wc -l | grep 1
 | 
					// RUN:   grep weak | wc -l | grep 1
 | 
				
			||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | grep xWeaknoinline | grep weak wc -l | grep 1
 | 
					// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | grep xextWeak | \
 | 
				
			||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | grep xWeakextnoinline | grep weak wc -l | grep 1
 | 
					// RUN:   grep weak | wc -l | grep 1
 | 
				
			||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | grep xglobnoWeak | grep -v internal | grep -v weak | grep -v linkonce | wc -l | grep 1
 | 
					// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | \
 | 
				
			||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | grep xstatnoWeak | grep internal | wc -l | grep 1
 | 
					// RUN:   grep xWeaknoinline | grep weak | wc -l | grep 1
 | 
				
			||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep declare | grep xextnoWeak | grep -v internal | grep -v weak | grep -v linkonce | wc -l | grep 1
 | 
					// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | \
 | 
				
			||||||
 | 
					// RUN:   grep xWeakextnoinline | grep weak | wc -l | grep 1
 | 
				
			||||||
 | 
					// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | \
 | 
				
			||||||
 | 
					// RUN:   grep xglobnoWeak | grep -v internal | grep -v weak | \
 | 
				
			||||||
 | 
					// RUN:   grep -v linkonce | wc -l | grep 1
 | 
				
			||||||
 | 
					// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | \
 | 
				
			||||||
 | 
					// RUN:   grep xstatnoWeak | grep internal | wc -l | grep 1
 | 
				
			||||||
 | 
					// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep declare | \
 | 
				
			||||||
 | 
					// RUN:   grep xextnoWeak | grep -v internal | grep -v weak | \
 | 
				
			||||||
 | 
					// RUN:   grep -v linkonce | wc -l | grep 1
 | 
				
			||||||
inline int xglobWeak(int) __attribute__((weak));
 | 
					inline int xglobWeak(int) __attribute__((weak));
 | 
				
			||||||
inline int xglobWeak (int i) {
 | 
					inline int xglobWeak (int i) {
 | 
				
			||||||
  return i*2;
 | 
					  return i*2;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,10 +1,19 @@
 | 
				
			|||||||
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep declare | grep xglobWeak | grep extern_weak | wc -l | grep 1
 | 
					// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep declare | \
 | 
				
			||||||
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | grep xextWeak | grep weak | wc -l | grep 1
 | 
					// RUN:   grep xglobWeak | grep extern_weak | wc -l | grep 1
 | 
				
			||||||
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | grep xWeaknoinline | grep weak wc -l | grep 1
 | 
					// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
 | 
				
			||||||
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | grep xWeakextnoinline | grep weak wc -l | grep 1
 | 
					// RUN:   grep xextWeak | grep weak | wc -l | grep 1
 | 
				
			||||||
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep declare | grep xglobnoWeak | grep -v internal | grep -v weak | grep -v linkonce | wc -l | grep 1
 | 
					// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
 | 
				
			||||||
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | grep xstatnoWeak | grep internal | wc -l | grep 1
 | 
					// RUN:   grep xWeaknoinline | grep weak | wc -l | grep 1
 | 
				
			||||||
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | grep xextnoWeak | grep -v internal | grep -v weak | grep -v linkonce | wc -l | grep 1
 | 
					// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
 | 
				
			||||||
 | 
					// RUN:   grep xWeakextnoinline | grep weak | wc -l | grep 1
 | 
				
			||||||
 | 
					// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep declare | \
 | 
				
			||||||
 | 
					// RUN:   grep xglobnoWeak | grep -v internal | grep -v weak | \
 | 
				
			||||||
 | 
					// RUN:   grep -v linkonce | wc -l | grep 1
 | 
				
			||||||
 | 
					// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
 | 
				
			||||||
 | 
					// RUN:   grep xstatnoWeak | grep internal | wc -l | grep 1
 | 
				
			||||||
 | 
					// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
 | 
				
			||||||
 | 
					// RUN:   grep xextnoWeak | grep -v internal | grep -v weak | \
 | 
				
			||||||
 | 
					// RUN:   grep -v linkonce | wc -l | grep 1
 | 
				
			||||||
inline int xglobWeak(int) __attribute__((weak));
 | 
					inline int xglobWeak(int) __attribute__((weak));
 | 
				
			||||||
inline int xglobWeak (int i) {
 | 
					inline int xglobWeak (int i) {
 | 
				
			||||||
  return i*2;
 | 
					  return i*2;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
// RUN: %llvmgcc %s -S -emit-llvm -o - | grep 'call void asm'
 | 
					// RUN: %llvmgcc %s -S -emit-llvm -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 -emit-llvm -o - | grep {call void asm}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
union U { int x; char* p; };
 | 
					union U { int x; char* p; };
 | 
				
			||||||
void foo() {
 | 
					void foo() {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,4 @@
 | 
				
			|||||||
// RUN: %llvmgcc -S %s -o - /dev/null 2>&1 > /dev/null | \
 | 
					// RUN: ignore %llvmgcc -S %s -o - /dev/null |& not grep warning
 | 
				
			||||||
// RUN:   not grep warning
 | 
					 | 
				
			||||||
// XFAIL: *
 | 
					// XFAIL: *
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define ATTR_BITS(N) __attribute__((bitwidth(N))) 
 | 
					#define ATTR_BITS(N) __attribute__((bitwidth(N))) 
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,6 @@
 | 
				
			|||||||
// RUN: %llvmgcc -S %s -o - | grep 'trunc.*to bool'
 | 
					// RUN: %llvmgcc -S %s -o - | grep {trunc.*to i8}
 | 
				
			||||||
// RUN: %llvmgcc -S %s -o - | llvm-as | opt -instcombine | llc -march=x86 | grep 'test.*1'
 | 
					// RUN: %llvmgcc -S %s -o - | llvm-as | opt -instcombine | llc -march=x86 | \
 | 
				
			||||||
 | 
					// RUN:   grep {test.*1}
 | 
				
			||||||
int
 | 
					int
 | 
				
			||||||
main ( int argc, char** argv)
 | 
					main ( int argc, char** argv)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,3 @@
 | 
				
			|||||||
load_lib llvm-dg.exp
 | 
					load_lib llvm.exp
 | 
				
			||||||
 | 
					
 | 
				
			||||||
llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
 | 
					RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep extern_weak &&
 | 
					// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep extern_weak
 | 
				
			||||||
// RUN: %llvmgcc -O3 -S -o - -emit-llvm | llvm-as | llc
 | 
					// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llvm-as | llc
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
 | 
					#if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
 | 
				
			||||||
void foo() __attribute__((weak_import));
 | 
					void foo() __attribute__((weak_import));
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,3 @@
 | 
				
			|||||||
// RUN: %llvmgcc %s -emit-llvm -S -o - | grep 'hidden global'
 | 
					// RUN: %llvmgcc %s -emit-llvm -S -o - | grep {hidden global}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int X __attribute__ ((__visibility__ ("hidden"))) = 123;
 | 
					int X __attribute__ ((__visibility__ ("hidden"))) = 123;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep 'sret' | wc -l | grep '5'
 | 
					// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep sret | wc -l | grep 5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct abc {
 | 
					struct abc {
 | 
				
			||||||
 int a;
 | 
					 int a;
 | 
				
			||||||
@@ -12,4 +12,4 @@ struct abc foo2();
 | 
				
			|||||||
void bar() {
 | 
					void bar() {
 | 
				
			||||||
  struct abc dummy1 = foo1();
 | 
					  struct abc dummy1 = foo1();
 | 
				
			||||||
  struct abc dummy2 = foo2();
 | 
					  struct abc dummy2 = foo2();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user