[llvm] r302482 - Add basic test case for -instnamer
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Mon May 8 16:18:47 PDT 2017
Author: sanjoy
Date: Mon May 8 18:18:46 2017
New Revision: 302482
URL: http://llvm.org/viewvc/llvm-project?rev=302482&view=rev
Log:
Add basic test case for -instnamer
Added:
llvm/trunk/test/Transforms/InstNamer/
llvm/trunk/test/Transforms/InstNamer/basic.ll
Added: llvm/trunk/test/Transforms/InstNamer/basic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstNamer/basic.ll?rev=302482&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/InstNamer/basic.ll (added)
+++ llvm/trunk/test/Transforms/InstNamer/basic.ll Mon May 8 18:18:46 2017
@@ -0,0 +1,19 @@
+; RUN: opt -S -instnamer < %s | FileCheck %s
+
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+define i32 @f_0(i32) {
+; CHECK-LABEL: @f_0(
+; CHECK: bb:
+; CHECK-NEXT: %tmp = add i32 %arg, 2
+; CHECK-NEXT: br label %bb1
+; CHECK: bb1:
+; CHECK-NEXT: ret i32 %tmp
+
+ %2 = add i32 %0, 2
+ br label %3
+
+; <label>:3:
+ ret i32 %2
+}
More information about the llvm-commits
mailing list