Home | History | Annotate | Download | only in Inline
      1 ; RUN: opt < %s -inline -S | grep "ret i32 1"
      2 ; ModuleID = 'short.opt.bc'
      3 
      4 define i32 @testBool(i1 %X) {
      5         %tmp = zext i1 %X to i32                ; <i32> [#uses=1]
      6         ret i32 %tmp
      7 }
      8 
      9 define i32 @testByte(i8 %X) {
     10         %tmp = icmp ne i8 %X, 0         ; <i1> [#uses=1]
     11         %tmp.i = zext i1 %tmp to i32            ; <i32> [#uses=1]
     12         ret i32 %tmp.i
     13 }
     14 
     15 define i32 @main() {
     16         %rslt = call i32 @testByte( i8 123 )            ; <i32> [#uses=1]
     17         ret i32 %rslt
     18 }
     19 
     20