diff options
Diffstat (limited to 'llvm/test/CodeGen/X86/usub_sat.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/usub_sat.ll | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/test/CodeGen/X86/usub_sat.ll b/llvm/test/CodeGen/X86/usub_sat.ll index 55cb6e8fd7f..a7de6b593be 100644 --- a/llvm/test/CodeGen/X86/usub_sat.ll +++ b/llvm/test/CodeGen/X86/usub_sat.ll @@ -50,7 +50,7 @@ define i64 @func2(i64 %x, i64 %y) nounwind { ret i64 %tmp } -define i16 @func16(i16 %x, i16 %y) nounwind { +define zeroext i16 @func16(i16 zeroext %x, i16 zeroext %y) nounwind { ; X86-LABEL: func16: ; X86: # %bb.0: ; X86-NEXT: movzwl {{[0-9]+}}(%esp), %eax @@ -71,7 +71,7 @@ define i16 @func16(i16 %x, i16 %y) nounwind { ret i16 %tmp } -define i8 @func8(i8 %x, i8 %y) nounwind { +define zeroext i8 @func8(i8 zeroext %x, i8 zeroext %y) nounwind { ; X86-LABEL: func8: ; X86: # %bb.0: ; X86-NEXT: movb {{[0-9]+}}(%esp), %al @@ -94,7 +94,7 @@ define i8 @func8(i8 %x, i8 %y) nounwind { ret i8 %tmp } -define i4 @func3(i4 %x, i4 %y) nounwind { +define zeroext i4 @func3(i4 zeroext %x, i4 zeroext %y) nounwind { ; X86-LABEL: func3: ; X86: # %bb.0: ; X86-NEXT: movb {{[0-9]+}}(%esp), %al @@ -106,19 +106,19 @@ define i4 @func3(i4 %x, i4 %y) nounwind { ; X86-NEXT: movzbl %al, %eax ; X86-NEXT: cmovbl %edx, %eax ; X86-NEXT: shrb $4, %al -; X86-NEXT: # kill: def $al killed $al killed $eax +; X86-NEXT: movzbl %al, %eax ; X86-NEXT: retl ; ; X64-LABEL: func3: ; X64: # %bb.0: ; X64-NEXT: shlb $4, %sil ; X64-NEXT: shlb $4, %dil -; X64-NEXT: xorl %ecx, %ecx +; X64-NEXT: xorl %eax, %eax ; X64-NEXT: subb %sil, %dil -; X64-NEXT: movzbl %dil, %eax -; X64-NEXT: cmovbl %ecx, %eax -; X64-NEXT: shrb $4, %al -; X64-NEXT: # kill: def $al killed $al killed $eax +; X64-NEXT: movzbl %dil, %ecx +; X64-NEXT: cmovbl %eax, %ecx +; X64-NEXT: shrb $4, %cl +; X64-NEXT: movzbl %cl, %eax ; X64-NEXT: retq %tmp = call i4 @llvm.usub.sat.i4(i4 %x, i4 %y) ret i4 %tmp |