llvm.org GIT mirror llvm / 2b5d3cf
remove dead flags git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22898 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 14 years ago
5 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
22 ; is invalid code (there is no correct way to order the instruction). Check
33 ; that we do not fold the load into the sub.
44
5 ; RUN: llvm-as < %s | llc -march=x86 -disable-pattern-isel=0 | not grep 'sub.*GLOBAL'
5 ; RUN: llvm-as < %s | llc -march=x86 | not grep 'sub.*GLOBAL'
66
77 %GLOBAL = external global int
88
0 ; Make sure this testcase codegens to the fabs instruction, not a call to fabsf
1 ; RUN: llvm-as < %s | llc -march=x86 -enable-pattern-isel=1 | grep 'fabs$' | wc -l | grep 2
1 ; RUN: llvm-as < %s | llc -march=x86 | grep 'fabs$' | wc -l | grep 2
22
33 declare float %fabsf(float)
44
0 ;; Both functions in this testcase should codegen to the same function, and
11 ;; neither of them should require spilling anything to the stack.
22
3 ; RUN: llvm-as < %s | llc -march=x86 -disable-pattern-isel=0 -stats 2>&1 | not grep 'Number of register spills'
3 ; RUN: llvm-as < %s | llc -march=x86 -stats 2>&1 | not grep 'Number of register spills'
44
55 ;; This can be compiled to use three registers if the loads are not
66 ;; folded into the multiplies, 2 registers otherwise.
None ; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel -enable-pattern-isel=1 | grep ro[rl] | wc -l | grep 12
0 ; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | grep ro[rl] | wc -l | grep 12
11
22 uint %rotl32(uint %A, ubyte %Amt) {
33 %B = shl uint %A, ubyte %Amt
None ; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel -enable-pattern-isel=1 | grep sh[lr]d | wc -l | grep 5
0 ; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel grep sh[lr]d | wc -l | grep 5
11
22 long %test1(long %X, ubyte %C) {
33 %Y = shl long %X, ubyte %C