summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/pr26350.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/pr26350.ll')
-rw-r--r--test/CodeGen/X86/pr26350.ll18
1 files changed, 13 insertions, 5 deletions
diff --git a/test/CodeGen/X86/pr26350.ll b/test/CodeGen/X86/pr26350.ll
index 6e87cb3e8b7a..5ba5862413b5 100644
--- a/test/CodeGen/X86/pr26350.ll
+++ b/test/CodeGen/X86/pr26350.ll
@@ -1,3 +1,4 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -disable-constant-hoisting < %s | FileCheck %s
target datalayout = "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128"
target triple = "i386-unknown-linux-gnu"
@@ -5,6 +6,18 @@ target triple = "i386-unknown-linux-gnu"
@d = global i32 8, align 4
define i32 @main() {
+; CHECK-LABEL: main:
+; CHECK: # BB#0: # %entry
+; CHECK-NEXT: movl d, %eax
+; CHECK-NEXT: movl %eax, %ecx
+; CHECK-NEXT: shrl $31, %ecx
+; CHECK-NEXT: addl %eax, %eax
+; CHECK-NEXT: andl $16, %eax
+; CHECK-NEXT: cmpl $-1, %eax
+; CHECK-NEXT: sbbl $0, %ecx
+; CHECK-NEXT: setb %al
+; CHECK-NEXT: movzbl %al, %eax
+; CHECK-NEXT: retl
entry:
%load = load i32, i32* @d, align 4
%conv1 = zext i32 %load to i64
@@ -14,8 +27,3 @@ entry:
%zext = zext i1 %cmp to i32
ret i32 %zext
}
-; CHECK: main:
-; CHECK: movl d, %[[load:.*]]
-; CHECK: movl %[[load]], %[[copy:.*]]
-; CHECK: shrl $31, %[[copy]]
-; CHECK: addl %[[load]], %[[load]]