mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
24f9324c29
As discussed in https://bugs.llvm.org/show_bug.cgi?id=45951 and D80584, the name 'tmp' is almost always a bad choice, but we have a legacy of regression tests with that name because it was baked into utils/update_test_checks.py. This change makes -instnamer more consistent (already using "arg" and "bb", the common LLVM shorthand). And it avoids the conflict in telling users of the FileCheck script to run "-instnamer" to create a better regression test and having that cause a warn/fail in update_test_checks.py.
20 lines
380 B
LLVM
20 lines
380 B
LLVM
; 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: %i = add i32 %arg, 2
|
|
; CHECK-NEXT: br label %bb1
|
|
; CHECK: bb1:
|
|
; CHECK-NEXT: ret i32 %i
|
|
|
|
%2 = add i32 %0, 2
|
|
br label %3
|
|
|
|
; <label>:3:
|
|
ret i32 %2
|
|
}
|