brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · e67d0b3 Raw
34 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt < %s -S -passes=instcombine | FileCheck %s3 4define i32 @__isnan(float %x) alwaysinline nounwind optsize {5; CHECK-LABEL: @__isnan(6; CHECK-NEXT:  entry:7; CHECK-NEXT:    [[DOTCAST:%.*]] = bitcast float [[X:%.*]] to i328; CHECK-NEXT:    [[SHL:%.*]] = shl i32 [[DOTCAST]], 19; CHECK-NEXT:    [[CMP:%.*]] = icmp ugt i32 [[SHL]], -1677721610; CHECK-NEXT:    [[CONV:%.*]] = zext i1 [[CMP]] to i3211; CHECK-NEXT:    ret i32 [[CONV]]12;13entry:14  %x.addr = alloca float, align 415  store float %x, ptr %x.addr, align 416  %0 = load float, ptr %x.addr, align 417  %1 = bitcast float %0 to i3218  %shl = shl i32 %1, 119  %cmp = icmp ugt i32 %shl, -1677721620  %conv = zext i1 %cmp to i3221  ret i32 %conv22}23 24define i1 @icmp_shl7(i32 %x) {25; CHECK-LABEL: @icmp_shl7(26; CHECK-NEXT:    [[SHL:%.*]] = shl i32 [[X:%.*]], 727; CHECK-NEXT:    [[CMP:%.*]] = icmp slt i32 [[SHL]], 460828; CHECK-NEXT:    ret i1 [[CMP]]29;30  %shl = shl i32 %x, 731  %cmp = icmp slt i32 %shl, 460832  ret i1 %cmp33}34