summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/pr29170.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/pr29170.ll')
-rw-r--r--test/CodeGen/X86/pr29170.ll23
1 files changed, 20 insertions, 3 deletions
diff --git a/test/CodeGen/X86/pr29170.ll b/test/CodeGen/X86/pr29170.ll
index d8e27557ab930..ecb4c9785365f 100644
--- a/test/CodeGen/X86/pr29170.ll
+++ b/test/CodeGen/X86/pr29170.ll
@@ -1,3 +1,4 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s | FileCheck %s
target datalayout = "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128"
@@ -5,10 +6,26 @@ target triple = "i386-unknown-linux-gnu"
@b = global i16 0, align 4
-; CHECK-LABEL: @main
-; CHECK: cmpl
-; CHECK: sbbl
define i32 @main() {
+; CHECK-LABEL: main:
+; CHECK: # BB#0: # %entry
+; CHECK-NEXT: xorl %eax, %eax
+; CHECK-NEXT: testb %al, %al
+; CHECK-NEXT: jne .LBB0_3
+; CHECK-NEXT: # BB#1: # %go
+; CHECK-NEXT: movl $-1, %ecx
+; CHECK-NEXT: movsbl b, %edx
+; CHECK-NEXT: notl %ecx
+; CHECK-NEXT: movzwl %dx, %edx
+; CHECK-NEXT: cmpl $-1, %edx
+; CHECK-NEXT: sbbl %ecx, %eax
+; CHECK-NEXT: jge .LBB0_3
+; CHECK-NEXT: # BB#2: # %if.then
+; CHECK-NEXT: movl $42, %eax
+; CHECK-NEXT: retl
+; CHECK-NEXT: .LBB0_3: # %if.else
+; CHECK-NEXT: xorl %eax, %eax
+; CHECK-NEXT: retl
entry:
%true = icmp eq i32 0, 0
%const = bitcast i64 -4294967296 to i64