1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i386-apple-darwin | FileCheck %s
4 define i16 @test(ptr %tmp179) nounwind {
7 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
8 ; CHECK-NEXT: movzwl (%eax), %eax
9 ; CHECK-NEXT: movl %eax, %ecx
10 ; CHECK-NEXT: andl $64512, %ecx ## imm = 0xFC00
11 ; CHECK-NEXT: cmpl $32768, %ecx ## imm = 0x8000
12 ; CHECK-NEXT: jne LBB0_2
13 ; CHECK-NEXT: ## %bb.1: ## %bb189
14 ; CHECK-NEXT: ## kill: def $ax killed $ax killed $eax
16 ; CHECK-NEXT: LBB0_2: ## %bb288
17 ; CHECK-NEXT: movw $32, %ax
19 %tmp180 = load i16, ptr %tmp179, align 2 ; <i16> [#uses=2]
20 %tmp184 = and i16 %tmp180, -1024 ; <i16> [#uses=1]
21 %tmp186 = icmp eq i16 %tmp184, -32768 ; <i1> [#uses=1]
22 br i1 %tmp186, label %bb189, label %bb288