1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=arm-- -mcpu=cortex-a8 | FileCheck %s
4 ; Check that the peepholer removes dead instructions:
9 define void @t(float %x) nounwind ssp {
11 ; CHECK: @ %bb.0: @ %entry
12 ; CHECK-NEXT: movw r1, #65534
13 ; CHECK-NEXT: movt r1, #32639
14 ; CHECK-NEXT: cmp r0, r1
16 ; CHECK-NEXT: .LBB0_1: @ %if.then
17 ; CHECK-NEXT: b doSomething
19 %0 = bitcast float %x to i32
20 %cmp = icmp ult i32 %0, 2139095039
21 br i1 %cmp, label %if.then, label %if.end
23 if.then: ; preds = %entry
24 tail call void @doSomething(float %x) nounwind
27 if.end: ; preds = %if.then, %entry
31 declare void @doSomething(float)