[llvm-commits] [llvm] r48121 - /llvm/trunk/test/C++Frontend/2006-11-06-StackTrace.cpp

Dan Gohman gohman at apple.com
Mon Mar 10 16:36:20 PDT 2008


It fails on x86-64 Mac OS, at least with my --with-extra-options=-m64  
build.

The failure I get looks like this:

2006-11-06-StackTrace.cpp.tmp.s:33:suffix or operands invalid for `push'
2006-11-06-StackTrace.cpp.tmp.s:37:suffix or operands invalid for `push'
2006-11-06-StackTrace.cpp.tmp.s:65:suffix or operands invalid for `pop'
2006-11-06-StackTrace.cpp.tmp.s:66:suffix or operands invalid for `pop'
2006-11-06-StackTrace.cpp.tmp.s:86:suffix or operands invalid for `push'
2006-11-06-StackTrace.cpp.tmp.s:102:suffix or operands invalid for `pop'
2006-11-06-StackTrace.cpp.tmp.s:113:suffix or operands invalid for  
`push'

The commands are

// RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | llc --disable-fp-elim - 
o %t.s -f
// RUN: %compile_c %t.s -o %t.o

Apparently llc is defaulting to 32-bit even when LLVM is built 64-bit,  
so
it's producing a 32-bit .s file. Then the %compile_c runs gcc with -m64,
and that's what causes the errors.

Dan

On Mar 9, 2008, at 7:50 PM, Evan Cheng wrote:

> Hrm. Last time I (and Dan) checked this doesn't work on x86-64 Mac OS
> X. Has something changed? If so, good! :-)
>
> Evan
>
> On Mar 9, 2008, at 3:24 PM, Anton Korobeynikov wrote:
>
>> Author: asl
>> Date: Sun Mar  9 17:24:03 2008
>> New Revision: 48121
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=48121&view=rev
>> Log:
>> This works on x86_64
>>
>> Modified:
>>   llvm/trunk/test/C++Frontend/2006-11-06-StackTrace.cpp
>>
>> Modified: llvm/trunk/test/C++Frontend/2006-11-06-StackTrace.cpp
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/C%2B%2BFrontend/2006-11-06-StackTrace.cpp?rev=48121&r1=48120&r2=48121&view=diff
>>
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> = 
>> =====================================================================
>> --- llvm/trunk/test/C++Frontend/2006-11-06-StackTrace.cpp (original)
>> +++ llvm/trunk/test/C++Frontend/2006-11-06-StackTrace.cpp Sun Mar  9
>> 17:24:03 2008
>> @@ -9,8 +9,8 @@
>> // RUN: gdb -q -batch -n -x %t.in %t.exe | \
>> // RUN:   grep {#7  0x.* in main.*(argc=\[12\],.*argv=.*)}
>>
>> -// Only works on ppc and x86.  Should generalize?
>> -// XFAIL: alpha|ia64|arm|x86_64|amd64
>> +// Only works on ppc, x86 and x86_64.  Should generalize?
>> +// XFAIL: alpha|ia64|arm
>>
>> #include <stdlib.h>
>>
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list