Index: llvm/trunk/lib/Target/X86/X86ScheduleBtVer2.td =================================================================== --- llvm/trunk/lib/Target/X86/X86ScheduleBtVer2.td +++ llvm/trunk/lib/Target/X86/X86ScheduleBtVer2.td @@ -166,7 +166,7 @@ def : WriteRes { let Latency = 5; } def : WriteRes; -def : WriteRes; +def : WriteRes; //////////////////////////////////////////////////////////////////////////////// // Idioms that clear a register, like xorps %xmm0, %xmm0. Index: llvm/trunk/test/CodeGen/X86/mmx-schedule.ll =================================================================== --- llvm/trunk/test/CodeGen/X86/mmx-schedule.ll +++ llvm/trunk/test/CodeGen/X86/mmx-schedule.ll @@ -81,7 +81,7 @@ ; BTVER2-NEXT: cvtpd2pi (%rdi), %mm1 # sched: [8:1.00] ; BTVER2-NEXT: cvtpd2pi %xmm0, %mm0 # sched: [3:1.00] ; BTVER2-NEXT: por %mm0, %mm1 # sched: [1:0.50] -; BTVER2-NEXT: movd %mm1, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm1, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_cvtpd2pi: @@ -326,7 +326,7 @@ ; BTVER2-NEXT: cvtps2pi (%rdi), %mm1 # sched: [8:1.00] ; BTVER2-NEXT: cvtps2pi %xmm0, %mm0 # sched: [3:1.00] ; BTVER2-NEXT: por %mm0, %mm1 # sched: [1:0.50] -; BTVER2-NEXT: movd %mm1, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm1, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_cvtps2pi: @@ -415,7 +415,7 @@ ; BTVER2-NEXT: cvttpd2pi (%rdi), %mm1 # sched: [8:1.00] ; BTVER2-NEXT: cvttpd2pi %xmm0, %mm0 # sched: [3:1.00] ; BTVER2-NEXT: por %mm0, %mm1 # sched: [1:0.50] -; BTVER2-NEXT: movd %mm1, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm1, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_cvttpd2pi: @@ -504,7 +504,7 @@ ; BTVER2-NEXT: cvttps2pi (%rdi), %mm1 # sched: [8:1.00] ; BTVER2-NEXT: cvttps2pi %xmm0, %mm0 # sched: [3:1.00] ; BTVER2-NEXT: por %mm0, %mm1 # sched: [1:0.50] -; BTVER2-NEXT: movd %mm1, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm1, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_cvttps2pi: @@ -748,15 +748,15 @@ ; ; BTVER2-LABEL: test_movd: ; BTVER2: # %bb.0: -; BTVER2-NEXT: vmovd %edi, %xmm0 # sched: [1:0.17] +; BTVER2-NEXT: vmovd %edi, %xmm0 # sched: [1:0.50] ; BTVER2-NEXT: vmovq %xmm0, -{{[0-9]+}}(%rsp) # sched: [1:1.00] ; BTVER2-NEXT: vmovss {{.*#+}} xmm0 = mem[0],zero,zero,zero sched: [5:1.00] ; BTVER2-NEXT: movq -{{[0-9]+}}(%rsp), %mm1 # sched: [5:1.00] ; BTVER2-NEXT: vmovlps %xmm0, -{{[0-9]+}}(%rsp) # sched: [1:1.00] ; BTVER2-NEXT: paddd -{{[0-9]+}}(%rsp), %mm1 # sched: [6:1.00] ; BTVER2-NEXT: paddd %mm1, %mm0 # sched: [1:0.50] -; BTVER2-NEXT: movd %mm1, %ecx # sched: [1:0.17] -; BTVER2-NEXT: movd %mm0, %eax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm1, %ecx # sched: [1:0.50] +; BTVER2-NEXT: movd %mm0, %eax # sched: [1:0.50] ; BTVER2-NEXT: movl %ecx, (%rsi) # sched: [1:1.00] ; BTVER2-NEXT: retq # sched: [4:1.00] ; @@ -847,9 +847,9 @@ ; ; BTVER2-LABEL: test_movdq2q: ; BTVER2: # %bb.0: -; BTVER2-NEXT: movdq2q %xmm0, %mm0 # sched: [1:0.17] +; BTVER2-NEXT: movdq2q %xmm0, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: paddd %mm0, %mm0 # sched: [1:0.50] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_movdq2q: @@ -1043,7 +1043,7 @@ ; ; BTVER2-LABEL: test_movq2dq: ; BTVER2: # %bb.0: -; BTVER2-NEXT: movq2dq %mm0, %xmm0 # sched: [1:0.17] +; BTVER2-NEXT: movq2dq %mm0, %xmm0 # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_movq2dq: @@ -1116,7 +1116,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pabsb (%rdi), %mm0 # sched: [6:1.00] ; BTVER2-NEXT: pabsb %mm0, %mm0 # sched: [1:0.50] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pabsb: @@ -1194,7 +1194,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pabsd (%rdi), %mm0 # sched: [6:1.00] ; BTVER2-NEXT: pabsd %mm0, %mm0 # sched: [1:0.50] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pabsd: @@ -1272,7 +1272,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pabsw (%rdi), %mm0 # sched: [6:1.00] ; BTVER2-NEXT: pabsw %mm0, %mm0 # sched: [1:0.50] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pabsw: @@ -1350,7 +1350,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: packssdw %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: packssdw (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_packssdw: @@ -1428,7 +1428,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: packsswb %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: packsswb (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_packsswb: @@ -1506,7 +1506,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: packuswb %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: packuswb (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_packuswb: @@ -1584,7 +1584,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: paddb %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: paddb (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_paddb: @@ -1662,7 +1662,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: paddd %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: paddd (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_paddd: @@ -1740,7 +1740,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: paddq %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: paddq (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_paddq: @@ -1818,7 +1818,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: paddsb %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: paddsb (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_paddsb: @@ -1896,7 +1896,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: paddsw %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: paddsw (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_paddsw: @@ -1974,7 +1974,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: paddusb %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: paddusb (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_paddusb: @@ -2052,7 +2052,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: paddusw %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: paddusw (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_paddusw: @@ -2130,7 +2130,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: paddw %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: paddw (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_paddw: @@ -2208,7 +2208,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: palignr $1, %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: palignr $1, (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_palignr: @@ -2286,7 +2286,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pand %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: pand (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pand: @@ -2364,7 +2364,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pandn %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: pandn (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pandn: @@ -2442,7 +2442,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pavgb %mm1, %mm0 # sched: [2:1.00] ; BTVER2-NEXT: pavgb (%rdi), %mm0 # sched: [7:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pavgb: @@ -2520,7 +2520,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pavgw %mm1, %mm0 # sched: [2:1.00] ; BTVER2-NEXT: pavgw (%rdi), %mm0 # sched: [7:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pavgw: @@ -2598,7 +2598,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pcmpeqb %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: pcmpeqb (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pcmpeqb: @@ -2676,7 +2676,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pcmpeqd %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: pcmpeqd (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pcmpeqd: @@ -2754,7 +2754,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pcmpeqw %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: pcmpeqw (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pcmpeqw: @@ -2832,7 +2832,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pcmpgtb %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: pcmpgtb (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pcmpgtb: @@ -2910,7 +2910,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pcmpgtd %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: pcmpgtd (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pcmpgtd: @@ -2988,7 +2988,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pcmpgtw %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: pcmpgtw (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pcmpgtw: @@ -3121,7 +3121,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: phaddd %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: phaddd (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_phaddd: @@ -3199,7 +3199,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: phaddsw %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: phaddsw (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_phaddsw: @@ -3277,7 +3277,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: phaddw %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: phaddw (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_phaddw: @@ -3355,7 +3355,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: phsubd %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: phsubd (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_phsubd: @@ -3433,7 +3433,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: phsubsw %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: phsubsw (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_phsubsw: @@ -3511,7 +3511,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: phsubw %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: phsubw (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_phsubw: @@ -3598,7 +3598,7 @@ ; BTVER2-NEXT: movswl (%rsi), %eax # sched: [4:1.00] ; BTVER2-NEXT: pinsrw $0, %edi, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: pinsrw $1, %eax, %mm0 # sched: [1:0.50] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pinsrw: @@ -3678,7 +3678,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pmaddwd %mm1, %mm0 # sched: [2:1.00] ; BTVER2-NEXT: pmaddwd (%rdi), %mm0 # sched: [7:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pmaddwd: @@ -3756,7 +3756,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pmaddubsw %mm1, %mm0 # sched: [2:1.00] ; BTVER2-NEXT: pmaddubsw (%rdi), %mm0 # sched: [7:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pmaddubsw: @@ -3834,7 +3834,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pmaxsw %mm1, %mm0 # sched: [2:1.00] ; BTVER2-NEXT: pmaxsw (%rdi), %mm0 # sched: [7:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pmaxsw: @@ -3912,7 +3912,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pmaxub %mm1, %mm0 # sched: [2:1.00] ; BTVER2-NEXT: pmaxub (%rdi), %mm0 # sched: [7:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pmaxub: @@ -3990,7 +3990,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pminsw %mm1, %mm0 # sched: [2:1.00] ; BTVER2-NEXT: pminsw (%rdi), %mm0 # sched: [7:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pminsw: @@ -4068,7 +4068,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pminub %mm1, %mm0 # sched: [2:1.00] ; BTVER2-NEXT: pminub (%rdi), %mm0 # sched: [7:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pminub: @@ -4201,7 +4201,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pmulhrsw %mm1, %mm0 # sched: [2:1.00] ; BTVER2-NEXT: pmulhrsw (%rdi), %mm0 # sched: [7:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pmulhrsw: @@ -4279,7 +4279,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pmulhw %mm1, %mm0 # sched: [2:1.00] ; BTVER2-NEXT: pmulhw (%rdi), %mm0 # sched: [7:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pmulhw: @@ -4357,7 +4357,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pmulhuw %mm1, %mm0 # sched: [2:1.00] ; BTVER2-NEXT: pmulhuw (%rdi), %mm0 # sched: [7:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pmulhuw: @@ -4435,7 +4435,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pmullw %mm1, %mm0 # sched: [2:1.00] ; BTVER2-NEXT: pmullw (%rdi), %mm0 # sched: [7:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pmullw: @@ -4513,7 +4513,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pmuludq %mm1, %mm0 # sched: [2:1.00] ; BTVER2-NEXT: pmuludq (%rdi), %mm0 # sched: [7:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pmuludq: @@ -4591,7 +4591,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: por %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: por (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_por: @@ -4669,7 +4669,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: psadbw %mm1, %mm0 # sched: [2:1.00] ; BTVER2-NEXT: psadbw (%rdi), %mm0 # sched: [7:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psadbw: @@ -4747,7 +4747,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pshufb %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: pshufb (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pshufb: @@ -4825,7 +4825,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pshufw $0, (%rdi), %mm0 # mm0 = mem[0,0,0,0] sched: [6:1.00] ; BTVER2-NEXT: pshufw $0, %mm0, %mm0 # mm0 = mm0[0,0,0,0] sched: [1:0.50] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pshufw: @@ -4903,7 +4903,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: psignb %mm1, %mm0 # sched: [2:1.00] ; BTVER2-NEXT: psignb (%rdi), %mm0 # sched: [7:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psignb: @@ -4981,7 +4981,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: psignd %mm1, %mm0 # sched: [2:1.00] ; BTVER2-NEXT: psignd (%rdi), %mm0 # sched: [7:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psignd: @@ -5059,7 +5059,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: psignw %mm1, %mm0 # sched: [2:1.00] ; BTVER2-NEXT: psignw (%rdi), %mm0 # sched: [7:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psignw: @@ -5146,7 +5146,7 @@ ; BTVER2-NEXT: pslld %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: pslld (%rdi), %mm0 # sched: [6:1.00] ; BTVER2-NEXT: pslld $7, %mm0 # sched: [1:0.50] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pslld: @@ -5236,7 +5236,7 @@ ; BTVER2-NEXT: psllq %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: psllq (%rdi), %mm0 # sched: [6:1.00] ; BTVER2-NEXT: psllq $7, %mm0 # sched: [1:0.50] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psllq: @@ -5326,7 +5326,7 @@ ; BTVER2-NEXT: psllw %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: psllw (%rdi), %mm0 # sched: [6:1.00] ; BTVER2-NEXT: psllw $7, %mm0 # sched: [1:0.50] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psllw: @@ -5416,7 +5416,7 @@ ; BTVER2-NEXT: psrad %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: psrad (%rdi), %mm0 # sched: [6:1.00] ; BTVER2-NEXT: psrad $7, %mm0 # sched: [1:0.50] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psrad: @@ -5506,7 +5506,7 @@ ; BTVER2-NEXT: psraw %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: psraw (%rdi), %mm0 # sched: [6:1.00] ; BTVER2-NEXT: psraw $7, %mm0 # sched: [1:0.50] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psraw: @@ -5596,7 +5596,7 @@ ; BTVER2-NEXT: psrld %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: psrld (%rdi), %mm0 # sched: [6:1.00] ; BTVER2-NEXT: psrld $7, %mm0 # sched: [1:0.50] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psrld: @@ -5686,7 +5686,7 @@ ; BTVER2-NEXT: psrlq %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: psrlq (%rdi), %mm0 # sched: [6:1.00] ; BTVER2-NEXT: psrlq $7, %mm0 # sched: [1:0.50] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psrlq: @@ -5776,7 +5776,7 @@ ; BTVER2-NEXT: psrlw %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: psrlw (%rdi), %mm0 # sched: [6:1.00] ; BTVER2-NEXT: psrlw $7, %mm0 # sched: [1:0.50] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psrlw: @@ -5857,7 +5857,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: psubb %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: psubb (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psubb: @@ -5935,7 +5935,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: psubd %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: psubd (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psubd: @@ -6013,7 +6013,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: psubq %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: psubq (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psubq: @@ -6091,7 +6091,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: psubsb %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: psubsb (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psubsb: @@ -6169,7 +6169,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: psubsw %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: psubsw (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psubsw: @@ -6247,7 +6247,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: psubusb %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: psubusb (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psubusb: @@ -6325,7 +6325,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: psubusw %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: psubusw (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psubusw: @@ -6403,7 +6403,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: psubw %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: psubw (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_psubw: @@ -6481,7 +6481,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: punpckhbw %mm1, %mm0 # mm0 = mm0[4],mm1[4],mm0[5],mm1[5],mm0[6],mm1[6],mm0[7],mm1[7] sched: [1:0.50] ; BTVER2-NEXT: punpckhbw (%rdi), %mm0 # mm0 = mm0[4],mem[4],mm0[5],mem[5],mm0[6],mem[6],mm0[7],mem[7] sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_punpckhbw: @@ -6559,7 +6559,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: punpckhdq %mm1, %mm0 # mm0 = mm0[1],mm1[1] sched: [1:0.50] ; BTVER2-NEXT: punpckhdq (%rdi), %mm0 # mm0 = mm0[1],mem[1] sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_punpckhdq: @@ -6637,7 +6637,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: punpckhwd %mm1, %mm0 # mm0 = mm0[2],mm1[2],mm0[3],mm1[3] sched: [1:0.50] ; BTVER2-NEXT: punpckhwd (%rdi), %mm0 # mm0 = mm0[2],mem[2],mm0[3],mem[3] sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_punpckhwd: @@ -6715,7 +6715,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: punpcklbw %mm1, %mm0 # mm0 = mm0[0],mm1[0],mm0[1],mm1[1],mm0[2],mm1[2],mm0[3],mm1[3] sched: [1:0.50] ; BTVER2-NEXT: punpcklbw (%rdi), %mm0 # mm0 = mm0[0],mem[0],mm0[1],mem[1],mm0[2],mem[2],mm0[3],mem[3] sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_punpcklbw: @@ -6793,7 +6793,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: punpckldq %mm1, %mm0 # mm0 = mm0[0],mm1[0] sched: [1:0.50] ; BTVER2-NEXT: punpckldq (%rdi), %mm0 # mm0 = mm0[0],mem[0] sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_punpckldq: @@ -6871,7 +6871,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: punpcklwd %mm1, %mm0 # mm0 = mm0[0],mm1[0],mm0[1],mm1[1] sched: [1:0.50] ; BTVER2-NEXT: punpcklwd (%rdi), %mm0 # mm0 = mm0[0],mem[0],mm0[1],mem[1] sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_punpcklwd: @@ -6949,7 +6949,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: pxor %mm1, %mm0 # sched: [1:0.50] ; BTVER2-NEXT: pxor (%rdi), %mm0 # sched: [6:1.00] -; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: movd %mm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_pxor: Index: llvm/trunk/test/CodeGen/X86/mul-constant-i32.ll =================================================================== --- llvm/trunk/test/CodeGen/X86/mul-constant-i32.ll +++ llvm/trunk/test/CodeGen/X86/mul-constant-i32.ll @@ -21,7 +21,7 @@ ; ; X64-JAG-LABEL: test_mul_by_1: ; X64-JAG: # %bb.0: -; X64-JAG-NEXT: movl %edi, %eax # sched: [1:0.17] +; X64-JAG-NEXT: movl %edi, %eax # sched: [1:0.50] ; X64-JAG-NEXT: retq # sched: [4:1.00] ; ; X86-NOOPT-LABEL: test_mul_by_1: @@ -36,7 +36,7 @@ ; ; JAG-NOOPT-LABEL: test_mul_by_1: ; JAG-NOOPT: # %bb.0: -; JAG-NOOPT-NEXT: movl %edi, %eax # sched: [1:0.17] +; JAG-NOOPT-NEXT: movl %edi, %eax # sched: [1:0.50] ; JAG-NOOPT-NEXT: retq # sched: [4:1.00] ; ; X64-SLM-LABEL: test_mul_by_1: @@ -787,7 +787,7 @@ ; X64-JAG-LABEL: test_mul_by_16: ; X64-JAG: # %bb.0: ; X64-JAG-NEXT: shll $4, %edi # sched: [1:0.50] -; X64-JAG-NEXT: movl %edi, %eax # sched: [1:0.17] +; X64-JAG-NEXT: movl %edi, %eax # sched: [1:0.50] ; X64-JAG-NEXT: retq # sched: [4:1.00] ; ; X86-NOOPT-LABEL: test_mul_by_16: @@ -805,7 +805,7 @@ ; JAG-NOOPT-LABEL: test_mul_by_16: ; JAG-NOOPT: # %bb.0: ; JAG-NOOPT-NEXT: shll $4, %edi # sched: [1:0.50] -; JAG-NOOPT-NEXT: movl %edi, %eax # sched: [1:0.17] +; JAG-NOOPT-NEXT: movl %edi, %eax # sched: [1:0.50] ; JAG-NOOPT-NEXT: retq # sched: [4:1.00] ; ; X64-SLM-LABEL: test_mul_by_16: @@ -843,7 +843,7 @@ ; X64-JAG-LABEL: test_mul_by_17: ; X64-JAG: # %bb.0: ; X64-JAG-NEXT: # kill: def %edi killed %edi def %rdi -; X64-JAG-NEXT: movl %edi, %eax # sched: [1:0.17] +; X64-JAG-NEXT: movl %edi, %eax # sched: [1:0.50] ; X64-JAG-NEXT: shll $4, %eax # sched: [1:0.50] ; X64-JAG-NEXT: leal (%rax,%rdi), %eax # sched: [1:0.50] ; X64-JAG-NEXT: retq # sched: [4:1.00] @@ -1530,7 +1530,7 @@ ; ; X64-JAG-LABEL: test_mul_by_30: ; X64-JAG: # %bb.0: -; X64-JAG-NEXT: movl %edi, %eax # sched: [1:0.17] +; X64-JAG-NEXT: movl %edi, %eax # sched: [1:0.50] ; X64-JAG-NEXT: shll $5, %eax # sched: [1:0.50] ; X64-JAG-NEXT: subl %edi, %eax # sched: [1:0.50] ; X64-JAG-NEXT: subl %edi, %eax # sched: [1:0.50] @@ -1582,7 +1582,7 @@ ; ; X64-JAG-LABEL: test_mul_by_31: ; X64-JAG: # %bb.0: -; X64-JAG-NEXT: movl %edi, %eax # sched: [1:0.17] +; X64-JAG-NEXT: movl %edi, %eax # sched: [1:0.50] ; X64-JAG-NEXT: shll $5, %eax # sched: [1:0.50] ; X64-JAG-NEXT: subl %edi, %eax # sched: [1:0.50] ; X64-JAG-NEXT: retq # sched: [4:1.00] @@ -1633,7 +1633,7 @@ ; X64-JAG-LABEL: test_mul_by_32: ; X64-JAG: # %bb.0: ; X64-JAG-NEXT: shll $5, %edi # sched: [1:0.50] -; X64-JAG-NEXT: movl %edi, %eax # sched: [1:0.17] +; X64-JAG-NEXT: movl %edi, %eax # sched: [1:0.50] ; X64-JAG-NEXT: retq # sched: [4:1.00] ; ; X86-NOOPT-LABEL: test_mul_by_32: @@ -1651,7 +1651,7 @@ ; JAG-NOOPT-LABEL: test_mul_by_32: ; JAG-NOOPT: # %bb.0: ; JAG-NOOPT-NEXT: shll $5, %edi # sched: [1:0.50] -; JAG-NOOPT-NEXT: movl %edi, %eax # sched: [1:0.17] +; JAG-NOOPT-NEXT: movl %edi, %eax # sched: [1:0.50] ; JAG-NOOPT-NEXT: retq # sched: [4:1.00] ; ; X64-SLM-LABEL: test_mul_by_32: Index: llvm/trunk/test/CodeGen/X86/mul-constant-i64.ll =================================================================== --- llvm/trunk/test/CodeGen/X86/mul-constant-i64.ll +++ llvm/trunk/test/CodeGen/X86/mul-constant-i64.ll @@ -22,7 +22,7 @@ ; ; X64-JAG-LABEL: test_mul_by_1: ; X64-JAG: # %bb.0: -; X64-JAG-NEXT: movq %rdi, %rax # sched: [1:0.17] +; X64-JAG-NEXT: movq %rdi, %rax # sched: [1:0.50] ; X64-JAG-NEXT: retq # sched: [4:1.00] ; ; X86-NOOPT-LABEL: test_mul_by_1: @@ -38,7 +38,7 @@ ; ; JAG-NOOPT-LABEL: test_mul_by_1: ; JAG-NOOPT: # %bb.0: -; JAG-NOOPT-NEXT: movq %rdi, %rax # sched: [1:0.17] +; JAG-NOOPT-NEXT: movq %rdi, %rax # sched: [1:0.50] ; JAG-NOOPT-NEXT: retq # sched: [4:1.00] ; ; X64-SLM-LABEL: test_mul_by_1: @@ -809,7 +809,7 @@ ; X64-JAG-LABEL: test_mul_by_16: ; X64-JAG: # %bb.0: ; X64-JAG-NEXT: shlq $4, %rdi # sched: [1:0.50] -; X64-JAG-NEXT: movq %rdi, %rax # sched: [1:0.17] +; X64-JAG-NEXT: movq %rdi, %rax # sched: [1:0.50] ; X64-JAG-NEXT: retq # sched: [4:1.00] ; ; X86-NOOPT-LABEL: test_mul_by_16: @@ -829,7 +829,7 @@ ; JAG-NOOPT-LABEL: test_mul_by_16: ; JAG-NOOPT: # %bb.0: ; JAG-NOOPT-NEXT: shlq $4, %rdi # sched: [1:0.50] -; JAG-NOOPT-NEXT: movq %rdi, %rax # sched: [1:0.17] +; JAG-NOOPT-NEXT: movq %rdi, %rax # sched: [1:0.50] ; JAG-NOOPT-NEXT: retq # sched: [4:1.00] ; ; X64-SLM-LABEL: test_mul_by_16: @@ -868,7 +868,7 @@ ; ; X64-JAG-LABEL: test_mul_by_17: ; X64-JAG: # %bb.0: -; X64-JAG-NEXT: movq %rdi, %rax # sched: [1:0.17] +; X64-JAG-NEXT: movq %rdi, %rax # sched: [1:0.50] ; X64-JAG-NEXT: shlq $4, %rax # sched: [1:0.50] ; X64-JAG-NEXT: leaq (%rax,%rdi), %rax # sched: [1:0.50] ; X64-JAG-NEXT: retq # sched: [4:1.00] @@ -1600,7 +1600,7 @@ ; ; X64-JAG-LABEL: test_mul_by_30: ; X64-JAG: # %bb.0: -; X64-JAG-NEXT: movq %rdi, %rax # sched: [1:0.17] +; X64-JAG-NEXT: movq %rdi, %rax # sched: [1:0.50] ; X64-JAG-NEXT: shlq $5, %rax # sched: [1:0.50] ; X64-JAG-NEXT: subq %rdi, %rax # sched: [1:0.50] ; X64-JAG-NEXT: subq %rdi, %rax # sched: [1:0.50] @@ -1658,7 +1658,7 @@ ; ; X64-JAG-LABEL: test_mul_by_31: ; X64-JAG: # %bb.0: -; X64-JAG-NEXT: movq %rdi, %rax # sched: [1:0.17] +; X64-JAG-NEXT: movq %rdi, %rax # sched: [1:0.50] ; X64-JAG-NEXT: shlq $5, %rax # sched: [1:0.50] ; X64-JAG-NEXT: subq %rdi, %rax # sched: [1:0.50] ; X64-JAG-NEXT: retq # sched: [4:1.00] @@ -1714,7 +1714,7 @@ ; X64-JAG-LABEL: test_mul_by_32: ; X64-JAG: # %bb.0: ; X64-JAG-NEXT: shlq $5, %rdi # sched: [1:0.50] -; X64-JAG-NEXT: movq %rdi, %rax # sched: [1:0.17] +; X64-JAG-NEXT: movq %rdi, %rax # sched: [1:0.50] ; X64-JAG-NEXT: retq # sched: [4:1.00] ; ; X86-NOOPT-LABEL: test_mul_by_32: @@ -1734,7 +1734,7 @@ ; JAG-NOOPT-LABEL: test_mul_by_32: ; JAG-NOOPT: # %bb.0: ; JAG-NOOPT-NEXT: shlq $5, %rdi # sched: [1:0.50] -; JAG-NOOPT-NEXT: movq %rdi, %rax # sched: [1:0.17] +; JAG-NOOPT-NEXT: movq %rdi, %rax # sched: [1:0.50] ; JAG-NOOPT-NEXT: retq # sched: [4:1.00] ; ; X64-SLM-LABEL: test_mul_by_32: Index: llvm/trunk/test/CodeGen/X86/schedule-x86_64.ll =================================================================== --- llvm/trunk/test/CodeGen/X86/schedule-x86_64.ll +++ llvm/trunk/test/CodeGen/X86/schedule-x86_64.ll @@ -665,7 +665,7 @@ ; BTVER2-LABEL: test_bswap32: ; BTVER2: # %bb.0: ; BTVER2-NEXT: bswapl %edi # sched: [1:0.50] -; BTVER2-NEXT: movl %edi, %eax # sched: [1:0.17] +; BTVER2-NEXT: movl %edi, %eax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_bswap32: @@ -728,7 +728,7 @@ ; BTVER2-LABEL: test_bswap64: ; BTVER2: # %bb.0: ; BTVER2-NEXT: bswapq %rdi # sched: [1:0.50] -; BTVER2-NEXT: movq %rdi, %rax # sched: [1:0.17] +; BTVER2-NEXT: movq %rdi, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_bswap64: Index: llvm/trunk/test/CodeGen/X86/sse2-schedule.ll =================================================================== --- llvm/trunk/test/CodeGen/X86/sse2-schedule.ll +++ llvm/trunk/test/CodeGen/X86/sse2-schedule.ll @@ -2838,11 +2838,11 @@ ; BTVER2-LABEL: test_movd: ; BTVER2: # %bb.0: ; BTVER2-NEXT: vmovd {{.*#+}} xmm2 = mem[0],zero,zero,zero sched: [5:1.00] -; BTVER2-NEXT: vmovd %edi, %xmm1 # sched: [1:0.17] +; BTVER2-NEXT: vmovd %edi, %xmm1 # sched: [1:0.50] ; BTVER2-NEXT: vpaddd %xmm1, %xmm0, %xmm1 # sched: [1:0.50] ; BTVER2-NEXT: vmovd %xmm1, (%rsi) # sched: [1:1.00] ; BTVER2-NEXT: vpaddd %xmm2, %xmm0, %xmm0 # sched: [1:0.50] -; BTVER2-NEXT: vmovd %xmm0, %eax # sched: [1:0.17] +; BTVER2-NEXT: vmovd %xmm0, %eax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_movd: @@ -2949,11 +2949,11 @@ ; BTVER2-LABEL: test_movd_64: ; BTVER2: # %bb.0: ; BTVER2-NEXT: vmovq {{.*#+}} xmm2 = mem[0],zero sched: [5:1.00] -; BTVER2-NEXT: vmovq %rdi, %xmm1 # sched: [1:0.17] +; BTVER2-NEXT: vmovq %rdi, %xmm1 # sched: [1:0.50] ; BTVER2-NEXT: vpaddq %xmm1, %xmm0, %xmm1 # sched: [1:0.50] ; BTVER2-NEXT: vmovq %xmm1, (%rsi) # sched: [1:1.00] ; BTVER2-NEXT: vpaddq %xmm2, %xmm0, %xmm0 # sched: [1:0.50] -; BTVER2-NEXT: vmovq %xmm0, %rax # sched: [1:0.17] +; BTVER2-NEXT: vmovq %xmm0, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: test_movd_64: Index: llvm/trunk/test/CodeGen/X86/sse3-schedule.ll =================================================================== --- llvm/trunk/test/CodeGen/X86/sse3-schedule.ll +++ llvm/trunk/test/CodeGen/X86/sse3-schedule.ll @@ -530,7 +530,7 @@ ; BTVER2-LABEL: test_monitor: ; BTVER2: # %bb.0: ; BTVER2-NEXT: leaq (%rdi), %rax # sched: [1:0.50] -; BTVER2-NEXT: movl %esi, %ecx # sched: [1:0.17] +; BTVER2-NEXT: movl %esi, %ecx # sched: [1:0.50] ; BTVER2-NEXT: monitor # sched: [100:0.17] ; BTVER2-NEXT: retq # sched: [4:1.00] ; @@ -838,8 +838,8 @@ ; ; BTVER2-LABEL: test_mwait: ; BTVER2: # %bb.0: -; BTVER2-NEXT: movl %edi, %ecx # sched: [1:0.17] -; BTVER2-NEXT: movl %esi, %eax # sched: [1:0.17] +; BTVER2-NEXT: movl %edi, %ecx # sched: [1:0.50] +; BTVER2-NEXT: movl %esi, %eax # sched: [1:0.50] ; BTVER2-NEXT: mwait # sched: [100:0.17] ; BTVER2-NEXT: retq # sched: [4:1.00] ; Index: llvm/trunk/test/CodeGen/X86/sse42-schedule.ll =================================================================== --- llvm/trunk/test/CodeGen/X86/sse42-schedule.ll +++ llvm/trunk/test/CodeGen/X86/sse42-schedule.ll @@ -64,7 +64,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: crc32b %sil, %edi # sched: [3:1.00] ; BTVER2-NEXT: crc32b (%rdx), %edi # sched: [8:1.00] -; BTVER2-NEXT: movl %edi, %eax # sched: [1:0.17] +; BTVER2-NEXT: movl %edi, %eax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: crc32_32_8: @@ -134,7 +134,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: crc32w %si, %edi # sched: [3:1.00] ; BTVER2-NEXT: crc32w (%rdx), %edi # sched: [8:1.00] -; BTVER2-NEXT: movl %edi, %eax # sched: [1:0.17] +; BTVER2-NEXT: movl %edi, %eax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: crc32_32_16: @@ -204,7 +204,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: crc32l %esi, %edi # sched: [3:1.00] ; BTVER2-NEXT: crc32l (%rdx), %edi # sched: [8:1.00] -; BTVER2-NEXT: movl %edi, %eax # sched: [1:0.17] +; BTVER2-NEXT: movl %edi, %eax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: crc32_32_32: @@ -274,7 +274,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: crc32b %sil, %edi # sched: [3:1.00] ; BTVER2-NEXT: crc32b (%rdx), %edi # sched: [8:1.00] -; BTVER2-NEXT: movq %rdi, %rax # sched: [1:0.17] +; BTVER2-NEXT: movq %rdi, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: crc32_64_8: @@ -344,7 +344,7 @@ ; BTVER2: # %bb.0: ; BTVER2-NEXT: crc32q %rsi, %rdi # sched: [3:1.00] ; BTVER2-NEXT: crc32q (%rdx), %rdi # sched: [8:1.00] -; BTVER2-NEXT: movq %rdi, %rax # sched: [1:0.17] +; BTVER2-NEXT: movq %rdi, %rax # sched: [1:0.50] ; BTVER2-NEXT: retq # sched: [4:1.00] ; ; ZNVER1-LABEL: crc32_64_64: @@ -454,12 +454,12 @@ ; ; BTVER2-LABEL: test_pcmpestri: ; BTVER2: # %bb.0: -; BTVER2-NEXT: movl $7, %eax # sched: [1:0.17] -; BTVER2-NEXT: movl $7, %edx # sched: [1:0.17] +; BTVER2-NEXT: movl $7, %eax # sched: [1:0.50] +; BTVER2-NEXT: movl $7, %edx # sched: [1:0.50] ; BTVER2-NEXT: vpcmpestri $7, %xmm1, %xmm0 # sched: [14:10.00] -; BTVER2-NEXT: movl $7, %eax # sched: [1:0.17] -; BTVER2-NEXT: movl $7, %edx # sched: [1:0.17] -; BTVER2-NEXT: movl %ecx, %esi # sched: [1:0.17] +; BTVER2-NEXT: movl $7, %eax # sched: [1:0.50] +; BTVER2-NEXT: movl $7, %edx # sched: [1:0.50] +; BTVER2-NEXT: movl %ecx, %esi # sched: [1:0.50] ; BTVER2-NEXT: vpcmpestri $7, (%rdi), %xmm0 # sched: [19:10.00] ; BTVER2-NEXT: # kill: def %ecx killed %ecx def %rcx ; BTVER2-NEXT: leal (%rcx,%rsi), %eax # sched: [1:0.50] @@ -558,11 +558,11 @@ ; ; BTVER2-LABEL: test_pcmpestrm: ; BTVER2: # %bb.0: -; BTVER2-NEXT: movl $7, %eax # sched: [1:0.17] -; BTVER2-NEXT: movl $7, %edx # sched: [1:0.17] +; BTVER2-NEXT: movl $7, %eax # sched: [1:0.50] +; BTVER2-NEXT: movl $7, %edx # sched: [1:0.50] ; BTVER2-NEXT: vpcmpestrm $7, %xmm1, %xmm0 # sched: [14:10.00] -; BTVER2-NEXT: movl $7, %eax # sched: [1:0.17] -; BTVER2-NEXT: movl $7, %edx # sched: [1:0.17] +; BTVER2-NEXT: movl $7, %eax # sched: [1:0.50] +; BTVER2-NEXT: movl $7, %edx # sched: [1:0.50] ; BTVER2-NEXT: vpcmpestrm $7, (%rdi), %xmm0 # sched: [19:10.00] ; BTVER2-NEXT: retq # sched: [4:1.00] ; @@ -649,7 +649,7 @@ ; BTVER2-LABEL: test_pcmpistri: ; BTVER2: # %bb.0: ; BTVER2-NEXT: vpcmpistri $7, %xmm1, %xmm0 # sched: [7:2.00] -; BTVER2-NEXT: movl %ecx, %eax # sched: [1:0.17] +; BTVER2-NEXT: movl %ecx, %eax # sched: [1:0.50] ; BTVER2-NEXT: vpcmpistri $7, (%rdi), %xmm0 # sched: [12:2.00] ; BTVER2-NEXT: # kill: def %ecx killed %ecx def %rcx ; BTVER2-NEXT: leal (%rcx,%rax), %eax # sched: [1:0.50] Index: llvm/trunk/test/CodeGen/X86/x87-schedule.ll =================================================================== --- llvm/trunk/test/CodeGen/X86/x87-schedule.ll +++ llvm/trunk/test/CodeGen/X86/x87-schedule.ll @@ -4255,8 +4255,8 @@ ; BTVER2-LABEL: test_fxch: ; BTVER2: # %bb.0: ; BTVER2-NEXT: #APP -; BTVER2-NEXT: fxch %st(1) # sched: [1:0.17] -; BTVER2-NEXT: fxch %st(3) # sched: [1:0.17] +; BTVER2-NEXT: fxch %st(1) # sched: [1:0.50] +; BTVER2-NEXT: fxch %st(3) # sched: [1:0.50] ; BTVER2-NEXT: #NO_APP ; BTVER2-NEXT: retl # sched: [4:1.00] ;