1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: -p --version 4
2 ; RUN: opt -S < %s | FileCheck %s
5 ; CHECK-LABEL: define i32 @instr() {
6 ; CHECK-NEXT: %1 = add i32 1, 2
7 ; CHECK-NEXT: %2 = add i32 %1, 3
8 ; CHECK-NEXT: %3 = add i32 %2, 4
9 ; CHECK-NEXT: ret i32 %3
17 define i32 @instr_some_implicit() {
18 ; CHECK-LABEL: define i32 @instr_some_implicit() {
19 ; CHECK-NEXT: %1 = add i32 1, 2
20 ; CHECK-NEXT: %2 = add i32 3, 4
21 ; CHECK-NEXT: %3 = add i32 %1, %2
22 ; CHECK-NEXT: ret i32 %3
30 define i32 @args(i32 %0, i32 %10, i32 %20) {
31 ; CHECK-LABEL: define i32 @args(i32 %0, i32 %1, i32 %2) {
32 ; CHECK-NEXT: %4 = add i32 %0, %1
33 ; CHECK-NEXT: %5 = add i32 %4, %2
34 ; CHECK-NEXT: ret i32 %5
37 %31 = add i32 %30, %20
41 define i32 @args_some_implicit(i32, i32 %10, i32) {
42 ; CHECK-LABEL: define i32 @args_some_implicit(i32 %0, i32 %1, i32 %2) {
43 ; CHECK-NEXT: %4 = add i32 %0, %1
44 ; CHECK-NEXT: %5 = add i32 %2, %4
45 ; CHECK-NEXT: ret i32 %5
48 %20 = add i32 %11, %13
52 define i32 @blocks() {
53 ; CHECK-LABEL: define i32 @blocks() {
54 ; CHECK-NEXT: br label %1
56 ; CHECK-NEXT: ret i32 0
65 define i32 @blocks_some_implicit() {
66 ; CHECK-LABEL: define i32 @blocks_some_implicit() {
67 ; CHECK-NEXT: br label %1
69 ; CHECK-NEXT: br label %2
71 ; CHECK-NEXT: ret i32 0