blob: 75dceb5b26232e1582b0ba75c6f9fdc3db113400 [file] [log] [blame]
Chandler Carruth49589f02012-07-02 18:37:59 +00001; RUN: llc < %s -O3 -debug-pass=Structure -print-machineinstrs=branch-folder -o /dev/null 2>&1 | FileCheck %s
2; RUN: llc < %s -O3 -debug-pass=Structure -print-machineinstrs -o /dev/null 2>&1 | FileCheck %s
3; RUN: llc < %s -O3 -debug-pass=Structure -print-machineinstrs= -o /dev/null 2>&1 | FileCheck %s
Bob Wilson6e1b8122012-05-30 00:17:12 +00004
5define i64 @foo(i64 %a, i64 %b) nounwind {
6; CHECK: -branch-folder -print-machineinstrs
7; CHECK: Control Flow Optimizer
8; CHECK-NEXT: MachineFunction Printer
9; CHECK: Machine code for function foo:
10 %c = add i64 %a, %b
11 %d = trunc i64 %c to i32
12 %e = zext i32 %d to i64
13 ret i64 %e
14}