llvm.org GIT mirror llvm / 0a6ee6d
Remove -unwind-tables-optional everywhere, since this is now the default. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49667 91177308-0d34-0410-b5e6-96231b3b80d8 Dale Johannesen 11 years ago
16 changed file(s) with 21 addition(s) and 21 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llvm-as < %s | llc -march=ppc32 -unwind-tables-optional | grep or | count 3
0 ; RUN: llvm-as < %s | llc -march=ppc32 | grep or | count 3
11 ; This should produce one 'or' or 'cror' instruction per function.
22
33 define i32 @test(double %x, double %y) nounwind {
None ; RUN: llvm-as < %s | llc -march=ppc32 -unwind-tables-optional | \
0 ; RUN: llvm-as < %s | llc -march=ppc32 | \
11 ; RUN: grep -v align | not grep li
22
33 ;; Test that immediates are folded into these instructions correctly.
None ; RUN: llvm-as < %s | llc -march=ppc32 -unwind-tables-optional | not grep or
0 ; RUN: llvm-as < %s | llc -march=ppc32 | not grep or
11
22 %struct.foo = type { i32, i32, [0 x i8] }
33
None ; RUN: llvm-as < %s | llc -march=ppc32 -unwind-tables-optional | grep rlwinm | count 4
1 ; RUN: llvm-as < %s | llc -march=ppc32 -unwind-tables-optional | grep rlwnm | count 2
2 ; RUN: llvm-as < %s | llc -march=ppc32 -unwind-tables-optional | not grep or
0 ; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwinm | count 4
1 ; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwnm | count 2
2 ; RUN: llvm-as < %s | llc -march=ppc32 | not grep or
33
44 define i32 @rotl32(i32 %A, i8 %Amt) nounwind {
55 %shift.upgrd.1 = zext i8 %Amt to i32 ; [#uses=1]
None ; RUN: llvm-as < %s | llc -march=x86 -unwind-tables-optional -stats |& \
0 ; RUN: llvm-as < %s | llc -march=x86 -stats |& \
11 ; RUN: grep asm-printer | grep 7
22
33 define i32 @g(i32 %a, i32 %b) nounwind {
0 ; RUN: llvm-as < %s | \
1 ; RUN: llc -march=x86 -relocation-model=static -unwind-tables-optional -stats |& \
1 ; RUN: llc -march=x86 -relocation-model=static -stats |& \
22 ; RUN: grep asm-printer | grep 14
33 ;
44 @size20 = external global i32 ; [#uses=1]
None ; RUN: llvm-as < %s | llc -march=x86 -stats -unwind-tables-optional |& \
0 ; RUN: llvm-as < %s | llc -march=x86 -stats |& \
11 ; RUN: grep asm-printer | grep 13
22
33 define void @_ZN9__gnu_cxx9hashtableISt4pairIKPKciES3_NS_4hashIS3_EESt10_Select1stIS5_E5eqstrSaIiEE14find_or_insertERKS5__cond_true456.i(i8* %tmp435.i, i32* %tmp449.i.out) nounwind {
None ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -stats -unwind-tables-optional |&\
0 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -stats |&\
11 ; RUN: grep {asm-printer} | grep 32
22
33 target datalayout = "e-p:32:32"
None ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-apple-darwin -enable-eh -unwind-tables-optional | grep {isNullOrNil].eh"} | count 2
0 ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-apple-darwin -enable-eh | grep {isNullOrNil].eh"} | count 2
11
22 %struct.NSString = type { }
33 %struct._objc__method_prototype_list = type opaque
0 ; RUN: llvm-as < %s | llc -march=x86-64 | grep LCPI | count 3
1 ; RUN: llvm-as < %s | llc -march=x86-64 -stats -unwind-tables-optional -info-output-file - | grep asm-printer | grep 6
1 ; RUN: llvm-as < %s | llc -march=x86-64 -stats -info-output-file - | grep asm-printer | grep 6
22 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep LCPI | count 3
3 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -stats -unwind-tables-optional -info-output-file - | grep asm-printer | grep 8
3 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -stats -info-output-file - | grep asm-printer | grep 8
44
55 declare fastcc float @qux(float %y)
66
None ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -unwind-tables-optional -stats |& grep asm-printer | grep 14
0 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -stats |& grep asm-printer | grep 14
11
22 define i32 @t(i8* %ref_frame_ptr, i32 %ref_frame_stride, i32 %idxX, i32 %idxY) nounwind {
33 entry:
None ; RUN: llvm-as < %s | llc -march=x86-64 -stats -unwind-tables-optional |& \
0 ; RUN: llvm-as < %s | llc -march=x86-64 -stats |& \
11 ; RUN: grep {6 .*Number of machine instrs printed}
22
33 ;; Integer absolute value, should produce something at least as good as:
None ; RUN: llvm-as < %s | llc -march=x86 -unwind-tables-optional | not grep set
0 ; RUN: llvm-as < %s | llc -march=x86 | not grep set
11
22 define void @foo(i32 %X, i32 %Y, i32 %Z) nounwind {
33 entry:
None ; RUN: llvm-as < %s | llc -march=x86 -mcpu=pentium -unwind-tables-optional
1 ; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah -unwind-tables-optional
2 ; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah -unwind-tables-optional | not grep set
0 ; RUN: llvm-as < %s | llc -march=x86 -mcpu=pentium
1 ; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah
2 ; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah | not grep set
33
44 define i1 @boolSel(i1 %A, i1 %B, i1 %C) nounwind {
55 %X = select i1 %A, i1 %B, i1 %C ; [#uses=1]
None ; RUN: llvm-as < %s | llc -march=x86 -unwind-tables-optional | not grep set
0 ; RUN: llvm-as < %s | llc -march=x86 | not grep set
11
22 declare i1 @llvm.isunordered.f32(float, float)
33
0 ; RUN: llvm-as < %s | llc -march=x86-64 | grep xor | count 4
1 ; RUN: llvm-as < %s | llc -march=x86-64 -stats -unwind-tables-optional -info-output-file - | grep asm-printer | grep 12
1 ; RUN: llvm-as < %s | llc -march=x86-64 -stats -info-output-file - | grep asm-printer | grep 12
22 ; RUN: llvm-as < %s | llc -march=x86 | grep fldz
33 ; RUN: llvm-as < %s | llc -march=x86 | not grep fldl
44