llvm.org GIT mirror llvm / 4531b61
Add basic test case for -instnamer git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302482 91177308-0d34-0410-b5e6-96231b3b80d8 Sanjoy Das 2 years ago
1 changed file(s) with 19 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: opt -S -instnamer < %s | FileCheck %s
1
2 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
3 target triple = "x86_64-unknown-linux-gnu"
4
5 define i32 @f_0(i32) {
6 ; CHECK-LABEL: @f_0(
7 ; CHECK: bb:
8 ; CHECK-NEXT: %tmp = add i32 %arg, 2
9 ; CHECK-NEXT: br label %bb1
10 ; CHECK: bb1:
11 ; CHECK-NEXT: ret i32 %tmp
12
13 %2 = add i32 %0, 2
14 br label %3
15
16 ;
17 ret i32 %2
18 }