summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/uadd_sat.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/X86/uadd_sat.ll')
-rw-r--r--llvm/test/CodeGen/X86/uadd_sat.ll26
1 files changed, 13 insertions, 13 deletions
diff --git a/llvm/test/CodeGen/X86/uadd_sat.ll b/llvm/test/CodeGen/X86/uadd_sat.ll
index 203d039a3a0..7124e453523 100644
--- a/llvm/test/CodeGen/X86/uadd_sat.ll
+++ b/llvm/test/CodeGen/X86/uadd_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), %ecx
@@ -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
@@ -102,11 +102,11 @@ define i4 @func3(i4 %x, i4 %y) nounwind {
; X86-NEXT: shlb $4, %cl
; X86-NEXT: shlb $4, %al
; X86-NEXT: addb %cl, %al
-; X86-NEXT: movzbl %al, %ecx
-; X86-NEXT: movl $255, %eax
-; X86-NEXT: cmovael %ecx, %eax
-; X86-NEXT: shrb $4, %al
-; X86-NEXT: # kill: def $al killed $al killed $eax
+; X86-NEXT: movzbl %al, %eax
+; X86-NEXT: movl $255, %ecx
+; X86-NEXT: cmovael %eax, %ecx
+; X86-NEXT: shrb $4, %cl
+; X86-NEXT: movzbl %cl, %eax
; X86-NEXT: retl
;
; X64-LABEL: func3:
@@ -114,11 +114,11 @@ define i4 @func3(i4 %x, i4 %y) nounwind {
; X64-NEXT: shlb $4, %sil
; X64-NEXT: shlb $4, %dil
; X64-NEXT: addb %sil, %dil
-; X64-NEXT: movzbl %dil, %ecx
-; X64-NEXT: movl $255, %eax
-; X64-NEXT: cmovael %ecx, %eax
-; X64-NEXT: shrb $4, %al
-; X64-NEXT: # kill: def $al killed $al killed $eax
+; X64-NEXT: movzbl %dil, %eax
+; X64-NEXT: movl $255, %ecx
+; X64-NEXT: cmovael %eax, %ecx
+; X64-NEXT: shrb $4, %cl
+; X64-NEXT: movzbl %cl, %eax
; X64-NEXT: retq
%tmp = call i4 @llvm.uadd.sat.i4(i4 %x, i4 %y)
ret i4 %tmp
OpenPOWER on IntegriCloud