; X86-NEXT: imull {{[0-9]+}}(%esp)
; X86-NEXT: shrdl $2, %edx, %eax
; X86-NEXT: retl
- %tmp = call i32 @llvm.smul.fix.i32(i32 %x, i32 %y, i32 2);
- ret i32 %tmp;
+ %tmp = call i32 @llvm.smul.fix.i32(i32 %x, i32 %y, i32 2)
+ ret i32 %tmp
}
define i64 @func2(i64 %x, i64 %y) {
; X86-NEXT: popl %ebp
; X86-NEXT: .cfi_def_cfa_offset 4
; X86-NEXT: retl
- %tmp = call i64 @llvm.smul.fix.i64(i64 %x, i64 %y, i32 2);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.smul.fix.i64(i64 %x, i64 %y, i32 2)
+ ret i64 %tmp
}
define i4 @func3(i4 %x, i4 %y) nounwind {
; X86-NEXT: orb %ah, %al
; X86-NEXT: # kill: def $al killed $al killed $eax
; X86-NEXT: retl
- %tmp = call i4 @llvm.smul.fix.i4(i4 %x, i4 %y, i32 2);
- ret i4 %tmp;
+ %tmp = call i4 @llvm.smul.fix.i4(i4 %x, i4 %y, i32 2)
+ ret i4 %tmp
}
define <4 x i32> @vec(<4 x i32> %x, <4 x i32> %y) nounwind {
; X86-NEXT: popl %ebx
; X86-NEXT: popl %ebp
; X86-NEXT: retl $4
- %tmp = call <4 x i32> @llvm.smul.fix.v4i32(<4 x i32> %x, <4 x i32> %y, i32 2);
- ret <4 x i32> %tmp;
+ %tmp = call <4 x i32> @llvm.smul.fix.v4i32(<4 x i32> %x, <4 x i32> %y, i32 2)
+ ret <4 x i32> %tmp
}
; These result in regular integer multiplication
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
; X86-NEXT: imull {{[0-9]+}}(%esp), %eax
; X86-NEXT: retl
- %tmp = call i32 @llvm.smul.fix.i32(i32 %x, i32 %y, i32 0);
- ret i32 %tmp;
+ %tmp = call i32 @llvm.smul.fix.i32(i32 %x, i32 %y, i32 0)
+ ret i32 %tmp
}
define i64 @func5(i64 %x, i64 %y) {
; X86-NEXT: popl %esi
; X86-NEXT: .cfi_def_cfa_offset 4
; X86-NEXT: retl
- %tmp = call i64 @llvm.smul.fix.i64(i64 %x, i64 %y, i32 0);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.smul.fix.i64(i64 %x, i64 %y, i32 0)
+ ret i64 %tmp
}
define i4 @func6(i4 %x, i4 %y) nounwind {
; X86-NEXT: sarb $4, %cl
; X86-NEXT: mulb %cl
; X86-NEXT: retl
- %tmp = call i4 @llvm.smul.fix.i4(i4 %x, i4 %y, i32 0);
- ret i4 %tmp;
+ %tmp = call i4 @llvm.smul.fix.i4(i4 %x, i4 %y, i32 0)
+ ret i4 %tmp
}
define <4 x i32> @vec2(<4 x i32> %x, <4 x i32> %y) nounwind {
; X86-NEXT: popl %esi
; X86-NEXT: popl %edi
; X86-NEXT: retl $4
- %tmp = call <4 x i32> @llvm.smul.fix.v4i32(<4 x i32> %x, <4 x i32> %y, i32 0);
- ret <4 x i32> %tmp;
+ %tmp = call <4 x i32> @llvm.smul.fix.v4i32(<4 x i32> %x, <4 x i32> %y, i32 0)
+ ret <4 x i32> %tmp
}
define i64 @func7(i64 %x, i64 %y) nounwind {
; X86-NEXT: popl %ebx
; X86-NEXT: popl %ebp
; X86-NEXT: retl
- %tmp = call i64 @llvm.smul.fix.i64(i64 %x, i64 %y, i32 32);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.smul.fix.i64(i64 %x, i64 %y, i32 32)
+ ret i64 %tmp
}
define i64 @func8(i64 %x, i64 %y) nounwind {
; X86-NEXT: popl %ebx
; X86-NEXT: popl %ebp
; X86-NEXT: retl
- %tmp = call i64 @llvm.smul.fix.i64(i64 %x, i64 %y, i32 63);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.smul.fix.i64(i64 %x, i64 %y, i32 63)
+ ret i64 %tmp
}
; X86-NEXT: movl $-2147483648, %ecx # imm = 0x80000000
; X86-NEXT: cmovll %ecx, %eax
; X86-NEXT: retl
- %tmp = call i32 @llvm.smul.fix.sat.i32(i32 %x, i32 %y, i32 2);
- ret i32 %tmp;
+ %tmp = call i32 @llvm.smul.fix.sat.i32(i32 %x, i32 %y, i32 2)
+ ret i32 %tmp
}
define i64 @func2(i64 %x, i64 %y) nounwind {
; X86-NEXT: popl %ebx
; X86-NEXT: popl %ebp
; X86-NEXT: retl
- %tmp = call i64 @llvm.smul.fix.sat.i64(i64 %x, i64 %y, i32 2);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.smul.fix.sat.i64(i64 %x, i64 %y, i32 2)
+ ret i64 %tmp
}
define i4 @func3(i4 %x, i4 %y) nounwind {
; X86-NEXT: sarb $4, %al
; X86-NEXT: # kill: def $al killed $al killed $eax
; X86-NEXT: retl
- %tmp = call i4 @llvm.smul.fix.sat.i4(i4 %x, i4 %y, i32 2);
- ret i4 %tmp;
+ %tmp = call i4 @llvm.smul.fix.sat.i4(i4 %x, i4 %y, i32 2)
+ ret i4 %tmp
}
define <4 x i32> @vec(<4 x i32> %x, <4 x i32> %y) nounwind {
; X86-NEXT: popl %ebx
; X86-NEXT: popl %ebp
; X86-NEXT: retl $4
- %tmp = call <4 x i32> @llvm.smul.fix.sat.v4i32(<4 x i32> %x, <4 x i32> %y, i32 2);
- ret <4 x i32> %tmp;
+ %tmp = call <4 x i32> @llvm.smul.fix.sat.v4i32(<4 x i32> %x, <4 x i32> %y, i32 2)
+ ret <4 x i32> %tmp
}
; These result in regular integer multiplication
; X86-NEXT: cmovol %ecx, %eax
; X86-NEXT: popl %esi
; X86-NEXT: retl
- %tmp = call i32 @llvm.smul.fix.sat.i32(i32 %x, i32 %y, i32 0);
- ret i32 %tmp;
+ %tmp = call i32 @llvm.smul.fix.sat.i32(i32 %x, i32 %y, i32 0)
+ ret i32 %tmp
}
define i64 @func5(i64 %x, i64 %y) {
; X86-NEXT: popl %edi
; X86-NEXT: .cfi_def_cfa_offset 4
; X86-NEXT: retl
- %tmp = call i64 @llvm.smul.fix.sat.i64(i64 %x, i64 %y, i32 0);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.smul.fix.sat.i64(i64 %x, i64 %y, i32 0)
+ ret i64 %tmp
}
define i4 @func6(i4 %x, i4 %y) nounwind {
; X86-NEXT: sarb $4, %al
; X86-NEXT: # kill: def $al killed $al killed $eax
; X86-NEXT: retl
- %tmp = call i4 @llvm.smul.fix.sat.i4(i4 %x, i4 %y, i32 0);
- ret i4 %tmp;
+ %tmp = call i4 @llvm.smul.fix.sat.i4(i4 %x, i4 %y, i32 0)
+ ret i4 %tmp
}
define <4 x i32> @vec2(<4 x i32> %x, <4 x i32> %y) nounwind {
; X86-NEXT: popl %ebx
; X86-NEXT: popl %ebp
; X86-NEXT: retl $4
- %tmp = call <4 x i32> @llvm.smul.fix.sat.v4i32(<4 x i32> %x, <4 x i32> %y, i32 0);
- ret <4 x i32> %tmp;
+ %tmp = call <4 x i32> @llvm.smul.fix.sat.v4i32(<4 x i32> %x, <4 x i32> %y, i32 0)
+ ret <4 x i32> %tmp
}
define i64 @func7(i64 %x, i64 %y) nounwind {
; X86-NEXT: popl %ebx
; X86-NEXT: popl %ebp
; X86-NEXT: retl
- %tmp = call i64 @llvm.smul.fix.sat.i64(i64 %x, i64 %y, i32 32);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.smul.fix.sat.i64(i64 %x, i64 %y, i32 32)
+ ret i64 %tmp
}
define i64 @func8(i64 %x, i64 %y) nounwind {
; X86-NEXT: popl %ebx
; X86-NEXT: popl %ebp
; X86-NEXT: retl
- %tmp = call i64 @llvm.smul.fix.sat.i64(i64 %x, i64 %y, i32 63);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.smul.fix.sat.i64(i64 %x, i64 %y, i32 63)
+ ret i64 %tmp
}
; X64-NEXT: movabsq $-9223372036854775808, %rcx # imm = 0x8000000000000000
; X64-NEXT: cmovlq %rcx, %rax
; X64-NEXT: retq
- %tmp = call i64 @llvm.smul.fix.sat.i64(i64 3, i64 2, i32 2);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.smul.fix.sat.i64(i64 3, i64 2, i32 2)
+ ret i64 %tmp
}
define i64 @func2() nounwind {
; X64-NEXT: imulq $2, %rax, %rax
; X64-NEXT: cmovoq %rcx, %rax
; X64-NEXT: retq
- %tmp = call i64 @llvm.smul.fix.sat.i64(i64 3, i64 2, i32 0);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.smul.fix.sat.i64(i64 3, i64 2, i32 0)
+ ret i64 %tmp
}
define i64 @func3() nounwind {
; X64-NEXT: movabsq $-9223372036854775808, %rcx # imm = 0x8000000000000000
; X64-NEXT: cmovlq %rcx, %rax
; X64-NEXT: retq
- %tmp = call i64 @llvm.smul.fix.sat.i64(i64 9223372036854775807, i64 2, i32 2);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.smul.fix.sat.i64(i64 9223372036854775807, i64 2, i32 2)
+ ret i64 %tmp
}
define i64 @func4() nounwind {
; X64-NEXT: movabsq $-9223372036854775808, %rcx # imm = 0x8000000000000000
; X64-NEXT: cmovlq %rcx, %rax
; X64-NEXT: retq
- %tmp = call i64 @llvm.smul.fix.sat.i64(i64 9223372036854775807, i64 2, i32 32);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.smul.fix.sat.i64(i64 9223372036854775807, i64 2, i32 32)
+ ret i64 %tmp
}
define i64 @func5() nounwind {
; X64-NEXT: movabsq $-9223372036854775808, %rcx # imm = 0x8000000000000000
; X64-NEXT: cmovlq %rcx, %rax
; X64-NEXT: retq
- %tmp = call i64 @llvm.smul.fix.sat.i64(i64 9223372036854775807, i64 2, i32 63);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.smul.fix.sat.i64(i64 9223372036854775807, i64 2, i32 63)
+ ret i64 %tmp
}
; X64-NEXT: subl %esi, %edi
; X64-NEXT: cmovnol %edi, %eax
; X64-NEXT: retq
- %tmp = call i32 @llvm.ssub.sat.i32(i32 %x, i32 %y);
- ret i32 %tmp;
+ %tmp = call i32 @llvm.ssub.sat.i32(i32 %x, i32 %y)
+ ret i32 %tmp
}
define i64 @func2(i64 %x, i64 %y) nounwind {
; X64-NEXT: subq %rsi, %rdi
; X64-NEXT: cmovnoq %rdi, %rax
; X64-NEXT: retq
- %tmp = call i64 @llvm.ssub.sat.i64(i64 %x, i64 %y);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.ssub.sat.i64(i64 %x, i64 %y)
+ ret i64 %tmp
}
define i4 @func3(i4 %x, i4 %y) nounwind {
; X64-NEXT: sarb $4, %al
; X64-NEXT: # kill: def $al killed $al killed $eax
; X64-NEXT: retq
- %tmp = call i4 @llvm.ssub.sat.i4(i4 %x, i4 %y);
- ret i4 %tmp;
+ %tmp = call i4 @llvm.ssub.sat.i4(i4 %x, i4 %y)
+ ret i4 %tmp
}
define <4 x i32> @vec(<4 x i32> %x, <4 x i32> %y) nounwind {
; X64-NEXT: pandn %xmm2, %xmm0
; X64-NEXT: por %xmm3, %xmm0
; X64-NEXT: retq
- %tmp = call <4 x i32> @llvm.ssub.sat.v4i32(<4 x i32> %x, <4 x i32> %y);
- ret <4 x i32> %tmp;
+ %tmp = call <4 x i32> @llvm.ssub.sat.v4i32(<4 x i32> %x, <4 x i32> %y)
+ ret <4 x i32> %tmp
}
; X64-NEXT: movl $-1, %eax
; X64-NEXT: cmovael %edi, %eax
; X64-NEXT: retq
- %tmp = call i32 @llvm.uadd.sat.i32(i32 %x, i32 %y);
- ret i32 %tmp;
+ %tmp = call i32 @llvm.uadd.sat.i32(i32 %x, i32 %y)
+ ret i32 %tmp
}
define i64 @func2(i64 %x, i64 %y) nounwind {
; X64-NEXT: movq $-1, %rax
; X64-NEXT: cmovaeq %rdi, %rax
; X64-NEXT: retq
- %tmp = call i64 @llvm.uadd.sat.i64(i64 %x, i64 %y);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.uadd.sat.i64(i64 %x, i64 %y)
+ ret i64 %tmp
}
define i4 @func3(i4 %x, i4 %y) nounwind {
; X64-NEXT: shrb $4, %al
; X64-NEXT: # kill: def $al killed $al killed $eax
; X64-NEXT: retq
- %tmp = call i4 @llvm.uadd.sat.i4(i4 %x, i4 %y);
- ret i4 %tmp;
+ %tmp = call i4 @llvm.uadd.sat.i4(i4 %x, i4 %y)
+ ret i4 %tmp
}
define <4 x i32> @vec(<4 x i32> %x, <4 x i32> %y) nounwind {
; X64-NEXT: pcmpgtd %xmm2, %xmm0
; X64-NEXT: por %xmm1, %xmm0
; X64-NEXT: retq
- %tmp = call <4 x i32> @llvm.uadd.sat.v4i32(<4 x i32> %x, <4 x i32> %y);
- ret <4 x i32> %tmp;
+ %tmp = call <4 x i32> @llvm.uadd.sat.v4i32(<4 x i32> %x, <4 x i32> %y)
+ ret <4 x i32> %tmp
}
; X86-NEXT: mull {{[0-9]+}}(%esp)
; X86-NEXT: shrdl $2, %edx, %eax
; X86-NEXT: retl
- %tmp = call i32 @llvm.umul.fix.i32(i32 %x, i32 %y, i32 2);
- ret i32 %tmp;
+ %tmp = call i32 @llvm.umul.fix.i32(i32 %x, i32 %y, i32 2)
+ ret i32 %tmp
}
define i64 @func2(i64 %x, i64 %y) nounwind {
; X86-NEXT: popl %ebx
; X86-NEXT: popl %ebp
; X86-NEXT: retl
- %tmp = call i64 @llvm.umul.fix.i64(i64 %x, i64 %y, i32 2);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.umul.fix.i64(i64 %x, i64 %y, i32 2)
+ ret i64 %tmp
}
define i4 @func3(i4 %x, i4 %y) nounwind {
; X86-NEXT: shrb $2, %al
; X86-NEXT: # kill: def $al killed $al killed $eax
; X86-NEXT: retl
- %tmp = call i4 @llvm.umul.fix.i4(i4 %x, i4 %y, i32 2);
- ret i4 %tmp;
+ %tmp = call i4 @llvm.umul.fix.i4(i4 %x, i4 %y, i32 2)
+ ret i4 %tmp
}
define <4 x i32> @vec(<4 x i32> %x, <4 x i32> %y) nounwind {
; X86-NEXT: popl %ebx
; X86-NEXT: popl %ebp
; X86-NEXT: retl $4
- %tmp = call <4 x i32> @llvm.umul.fix.v4i32(<4 x i32> %x, <4 x i32> %y, i32 2);
- ret <4 x i32> %tmp;
+ %tmp = call <4 x i32> @llvm.umul.fix.v4i32(<4 x i32> %x, <4 x i32> %y, i32 2)
+ ret <4 x i32> %tmp
}
; These result in regular integer multiplication
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
; X86-NEXT: imull {{[0-9]+}}(%esp), %eax
; X86-NEXT: retl
- %tmp = call i32 @llvm.umul.fix.i32(i32 %x, i32 %y, i32 0);
- ret i32 %tmp;
+ %tmp = call i32 @llvm.umul.fix.i32(i32 %x, i32 %y, i32 0)
+ ret i32 %tmp
}
define i64 @func5(i64 %x, i64 %y) nounwind {
; X86-NEXT: addl %esi, %edx
; X86-NEXT: popl %esi
; X86-NEXT: retl
- %tmp = call i64 @llvm.umul.fix.i64(i64 %x, i64 %y, i32 0);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.umul.fix.i64(i64 %x, i64 %y, i32 0)
+ ret i64 %tmp
}
define i4 @func6(i4 %x, i4 %y) nounwind {
; X86-NEXT: andb $15, %cl
; X86-NEXT: mulb %cl
; X86-NEXT: retl
- %tmp = call i4 @llvm.umul.fix.i4(i4 %x, i4 %y, i32 0);
- ret i4 %tmp;
+ %tmp = call i4 @llvm.umul.fix.i4(i4 %x, i4 %y, i32 0)
+ ret i4 %tmp
}
define <4 x i32> @vec2(<4 x i32> %x, <4 x i32> %y) nounwind {
; X86-NEXT: popl %esi
; X86-NEXT: popl %edi
; X86-NEXT: retl $4
- %tmp = call <4 x i32> @llvm.umul.fix.v4i32(<4 x i32> %x, <4 x i32> %y, i32 0);
- ret <4 x i32> %tmp;
+ %tmp = call <4 x i32> @llvm.umul.fix.v4i32(<4 x i32> %x, <4 x i32> %y, i32 0)
+ ret <4 x i32> %tmp
}
define i64 @func7(i64 %x, i64 %y) nounwind {
; X86-NEXT: popl %ebx
; X86-NEXT: popl %ebp
; X86-NEXT: retl
- %tmp = call i64 @llvm.umul.fix.i64(i64 %x, i64 %y, i32 32);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.umul.fix.i64(i64 %x, i64 %y, i32 32)
+ ret i64 %tmp
}
define i64 @func8(i64 %x, i64 %y) nounwind {
; X86-NEXT: popl %ebx
; X86-NEXT: popl %ebp
; X86-NEXT: retl
- %tmp = call i64 @llvm.umul.fix.i64(i64 %x, i64 %y, i32 63);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.umul.fix.i64(i64 %x, i64 %y, i32 63)
+ ret i64 %tmp
}
define i64 @func9(i64 %x, i64 %y) nounwind {
; X86-NEXT: popl %ebx
; X86-NEXT: popl %ebp
; X86-NEXT: retl
- %tmp = call i64 @llvm.umul.fix.i64(i64 %x, i64 %y, i32 64);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.umul.fix.i64(i64 %x, i64 %y, i32 64)
+ ret i64 %tmp
}
; X64-NEXT: subl %esi, %edi
; X64-NEXT: cmovael %edi, %eax
; X64-NEXT: retq
- %tmp = call i32 @llvm.usub.sat.i32(i32 %x, i32 %y);
- ret i32 %tmp;
+ %tmp = call i32 @llvm.usub.sat.i32(i32 %x, i32 %y)
+ ret i32 %tmp
}
define i64 @func2(i64 %x, i64 %y) nounwind {
; X64-NEXT: subq %rsi, %rdi
; X64-NEXT: cmovaeq %rdi, %rax
; X64-NEXT: retq
- %tmp = call i64 @llvm.usub.sat.i64(i64 %x, i64 %y);
- ret i64 %tmp;
+ %tmp = call i64 @llvm.usub.sat.i64(i64 %x, i64 %y)
+ ret i64 %tmp
}
define i4 @func3(i4 %x, i4 %y) nounwind {
; X64-NEXT: shrb $4, %al
; X64-NEXT: # kill: def $al killed $al killed $eax
; X64-NEXT: retq
- %tmp = call i4 @llvm.usub.sat.i4(i4 %x, i4 %y);
- ret i4 %tmp;
+ %tmp = call i4 @llvm.usub.sat.i4(i4 %x, i4 %y)
+ ret i4 %tmp
}
define <4 x i32> @vec(<4 x i32> %x, <4 x i32> %y) nounwind {
; X64-NEXT: psubd %xmm1, %xmm0
; X64-NEXT: pand %xmm2, %xmm0
; X64-NEXT: retq
- %tmp = call <4 x i32> @llvm.usub.sat.v4i32(<4 x i32> %x, <4 x i32> %y);
- ret <4 x i32> %tmp;
+ %tmp = call <4 x i32> @llvm.usub.sat.v4i32(<4 x i32> %x, <4 x i32> %y)
+ ret <4 x i32> %tmp
}