18 lines · plain
1; RUN: opt < %s -passes=float2int -S | FileCheck %s2;3; Verify that pass float2int is not run on optnone functions.4 5define i16 @simple1(i8 %a) #0 {6; CHECK-LABEL: @simple17; CHECK: %1 = uitofp i8 %a to float8; CHECK-NEXT: %2 = fadd float %1, 1.09; CHECK-NEXT: %3 = fptoui float %2 to i1610; CHECK-NEXT: ret i16 %311 %1 = uitofp i8 %a to float12 %2 = fadd float %1, 1.013 %3 = fptoui float %2 to i1614 ret i16 %315}16 17attributes #0 = { noinline optnone }18