1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
2 ; RUN: opt -S -passes=consthoist -mtriple=armv4t-unknown-linux-gnueabi < %s | FileCheck %s
4 define i1 @test(i32 %arg) optsize {
5 ; CHECK-LABEL: define i1 @test(
6 ; CHECK-SAME: i32 [[ARG:%.*]]) #[[ATTR0:[0-9]+]] {
7 ; CHECK-NEXT: [[ENTRY:.*:]]
8 ; CHECK-NEXT: [[CONST:%.*]] = bitcast i32 380633088 to i32
9 ; CHECK-NEXT: [[CONST_MAT:%.*]] = add i32 [[CONST]], -381681664
10 ; CHECK-NEXT: [[SHR_MASK:%.*]] = and i32 [[ARG]], [[CONST_MAT]]
11 ; CHECK-NEXT: [[CMP:%.*]] = icmp eq i32 [[SHR_MASK]], [[CONST]]
12 ; CHECK-NEXT: ret i1 [[CMP]]
15 %shr.mask = and i32 %arg, -1048576
16 %cmp = icmp eq i32 %shr.mask, 380633088