Introducing llvm.invariant.group.barrier intrinsic
[oota-llvm.git] / test / Transforms / Float2Int / float2int-optnone.ll
1 ; RUN: opt < %s -float2int -S | FileCheck %s
2 ;
3 ; Verify that pass float2int is not run on optnone functions.
4
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
14   ret i16 %3
15 }
16
17 attributes #0 = { noinline optnone }