llvm.org GIT mirror llvm / 8a3f644
Remove now-redundant llvm-as invocations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90626 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 10 years ago
20 changed file(s) with 21 addition(s) and 21 deletion(s). Raw diff Collapse all Expand all
None // RUN: %llvmgcc -std=c99 %s -S -o - | llvm-as | \
0 // RUN: %llvmgcc -std=c99 %s -S -o - | \
11 // RUN: opt -std-compile-opts -disable-output
22 // PR580
33
None // RUN: %llvmgcc %s -S -o - | llvm-as | opt -std-compile-opts | llc | \
0 // RUN: %llvmgcc %s -S -o - | opt -std-compile-opts | llc | \
11 // RUN: not grep _foo2
22
33 void foo() __asm__("foo2");
0 // PR691
1 // RUN: %llvmgcc %s -S -o - | llvm-as | opt -std-compile-opts | \
1 // RUN: %llvmgcc %s -S -o - | opt -std-compile-opts | \
22 // RUN: llvm-dis | grep llvm.stacksave
33
44 void test(int N) {
None // RUN: %llvmgcc %s -S -o - | llvm-as | opt -std-compile-opts | \
0 // RUN: %llvmgcc %s -S -o - | opt -std-compile-opts | \
11 // RUN: llvm-dis | grep {foo\[12345\]} | count 5
22
33 __asm__ ("foo1");
None // RUN: %llvmgcc %s -S -o - | llvm-as | opt -std-compile-opts | \
0 // RUN: %llvmgcc %s -S -o - | opt -std-compile-opts | \
11 // RUN: llvm-dis | grep {@nate.*internal global i32 0}
22
33 struct X { int *XX; int Y;};
0 // Verify that the %c modifier works and strips off any prefixes from
11 // immediates.
2 // RUN: %llvmgcc -S %s -o - | llvm-as | llc | grep {pickANumber: 789514}
2 // RUN: %llvmgcc -S %s -o - | llc | grep {pickANumber: 789514}
33
44 void foo() {
55 __asm__ volatile("/* " "pickANumber" ": %c0 */"::"i"(0xC0C0A));
None // RUN: %llvmgcc %s -S -emit-llvm -o - | llvm-as | llc
0 // RUN: %llvmgcc %s -S -emit-llvm -o - | llc
11
22 struct V { short X, Y; };
33 int bar() {
None // RUN: %llvmgcc %s -S -emit-llvm -o - | llvm-as | llc
0 // RUN: %llvmgcc %s -S -emit-llvm -o - | llc
11
22 union U { int x; float p; };
33 void foo() {
0 // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {align 1} | count 2
1 // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llvm-as | llc
1 // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llc
22
33 struct p {
44 char a;
None // RUN: %llvmgcc -S -g -O %s -o - | llvm-as | llc
1 // RUN: %llvmgcc -S -g %s -o - | llvm-as | llc
0 // RUN: %llvmgcc -S -g -O %s -o - | llc
1 // RUN: %llvmgcc -S -g %s -o - | llc
22
33 extern void foo (void);
44
0 // Check bitfields.
1 // RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \
1 // RUN: %llvmgcc -S -O0 -g %s -o - | \
22 // RUN: llc --disable-fp-elim -o 2009-02-17-BitField-dbg.s
33 // RUN: %compile_c 2009-02-17-BitField-dbg.s -o 2009-02-17-BitField-dbg.o
44 // RUN: echo {ptype mystruct} > %t2
0 // This file can be used to see what a native C compiler is generating for a
11 // variety of interesting operations.
22 //
3 // RUN: %llvmgcc -S %s -o - | llvm-as | llc
3 // RUN: %llvmgcc -S %s -o - | llc
44
55 unsigned int udiv(unsigned int X, unsigned int Y) {
66 return X/Y;
0 // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep extern_weak
1 // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llvm-as | llc
1 // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llc
22
33 #if !defined(__linux__) && !defined(__FreeBSD__) && \
44 !defined(__OpenBSD__) && !defined(__CYGWIN__) && !defined(__DragonFly__)
None // RUN: %llvmgcc %s -S -emit-llvm -o - | llvm-as | llc
0 // RUN: %llvmgcc %s -S -emit-llvm -o - | llc
11
22 void bork() {
33 char Qux[33] = {0};
0 // This is a regression test on debug info to make sure that we can get a
11 // meaningful stack trace from a C++ program.
2 // RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \
2 // RUN: %llvmgcc -S -O0 -g %s -o - | \
33 // RUN: llc --disable-fp-elim -o %t.s -O0 -relocation-model=pic
44 // RUN: %compile_c %t.s -o %t.o
55 // RUN: %link %t.o -o %t.exe
0 // This is a regression test on debug info to make sure we don't hit a compile
11 // unit size issue with gdb.
2 // RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \
2 // RUN: %llvmgcc -S -O0 -g %s -o - | \
33 // RUN: llc --disable-fp-elim -o NoCompileUnit.s
44 // RUN: %compile_c NoCompileUnit.s -o NoCompileUnit.o
55 // RUN: %link NoCompileUnit.o -o NoCompileUnit.exe
0 // This is a regression test on debug info to make sure that we can access
11 // qualified global names.
2 // RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \
2 // RUN: %llvmgcc -S -O0 -g %s -o - | \
33 // RUN: llc --disable-fp-elim -o %t.s -O0
44 // RUN: %compile_c %t.s -o %t.o
55 // RUN: %link %t.o -o %t.exe
0 // This is a regression test on debug info to make sure that we can
11 // print line numbers in asm.
2 // RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \
2 // RUN: %llvmgcc -S -O0 -g %s -o - | \
33 // RUN: llc --disable-fp-elim -O0 -relocation-model=pic | grep {SrcLine 25}
44
55 #include
0 // This is a regression test on debug info to make sure that we can set a
11 // breakpoint on a objective message.
2 // RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | llc -o %t.s -O0
2 // RUN: %llvmgcc -S -O0 -g %s -o - | llc -o %t.s -O0
33 // RUN: %compile_c %t.s -o %t.o
44 // RUN: %link %t.o -o %t.exe -framework Foundation
55 // RUN: echo {break randomFunc\n} > %t.in
None // RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \
0 // RUN: %llvmgcc -S -O0 -g %s -o - | \
11 // RUN: llc --disable-fp-elim -o %t.s -O0
22 // RUN: grep id %t.s | grep DW_AT_name
33 @interface A