20 lines · plain
1; RUN: opt < %s -passes=inline -S | FileCheck %s2; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s3; RUN: opt < %s -passes='module-inline' -S | FileCheck %s4 5define i32 @testByte(i8 %X) {6entry:7 %tmp = icmp ne i8 %X, 08 %tmp.i = zext i1 %tmp to i329 ret i32 %tmp.i10}11 12define i32 @main() {13; CHECK-LABEL: define i32 @main()14entry:15 %rslt = call i32 @testByte(i8 123)16; CHECK-NOT: call17 ret i32 %rslt18; CHECK: ret i32 119}20