1 ; RUN: opt < %s -passes=float2int -S | FileCheck %s
3 ; Verify that pass float2int is not run on optnone functions.
5 define i16 @simple1(i8 %a) #0 {
6 ; CHECK-LABEL: @simple1
7 ; CHECK: %1 = uitofp i8 %a to float
8 ; CHECK-NEXT: %2 = fadd float %1, 1.0
9 ; CHECK-NEXT: %3 = fptoui float %2 to i16
10 ; CHECK-NEXT: ret i16 %3
11 %1 = uitofp i8 %a to float
12 %2 = fadd float %1, 1.0
13 %3 = fptoui float %2 to i16
17 attributes #0 = { noinline optnone }