xref: /llvm-project/llvm/test/Transforms/InstNamer/basic.ll (revision ac696ac4530fb3df626195e94e83649bf7114754)
1*92d9a386SArthur Eubanks; RUN: opt -S -passes=instnamer < %s | FileCheck %s
2cee313d2SEric Christopher
3cee313d2SEric Christophertarget datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
4cee313d2SEric Christophertarget triple = "x86_64-unknown-linux-gnu"
5cee313d2SEric Christopher
6cee313d2SEric Christopherdefine i32 @f_0(i32) {
7cee313d2SEric Christopher; CHECK-LABEL: @f_0(
8cee313d2SEric Christopher; CHECK: bb:
9dd54432aSSanjay Patel; CHECK-NEXT:   %i = add i32 %arg, 2
10cee313d2SEric Christopher; CHECK-NEXT:   br label %bb1
11cee313d2SEric Christopher; CHECK: bb1:
12dd54432aSSanjay Patel; CHECK-NEXT:   ret i32 %i
13cee313d2SEric Christopher
14cee313d2SEric Christopher  %2 = add i32 %0, 2
15cee313d2SEric Christopher  br label %3
16cee313d2SEric Christopher
17cee313d2SEric Christopher; <label>:3:
18cee313d2SEric Christopher  ret i32 %2
19cee313d2SEric Christopher}
20