[PATCH] D101034: [InstCombine][NFC] Use --check-globals flag in tests.

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 22 06:07:10 PDT 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd944b1e0f2db: [InstCombine][NFC] Use --check-globals flag in tests. (authored by yurai007, committed by xbolva00).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101034/new/

https://reviews.llvm.org/D101034

Files:
  llvm/test/Transforms/InstCombine/printf-2.ll


Index: llvm/test/Transforms/InstCombine/printf-2.ll
===================================================================
--- llvm/test/Transforms/InstCombine/printf-2.ll
+++ llvm/test/Transforms/InstCombine/printf-2.ll
@@ -1,4 +1,4 @@
-; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals
 ; Test that the printf library call simplifier works correctly.
 ;
 ; RUN: opt < %s -instcombine -S | FileCheck %s
@@ -15,6 +15,14 @@
 
 ; Check simplification of printf with void return type.
 
+;.
+; CHECK: @[[HELLO_WORLD:[a-zA-Z0-9_$"\\.-]+]] = constant [13 x i8] c"hello world\0A\00"
+; CHECK: @[[H:[a-zA-Z0-9_$"\\.-]+]] = constant [2 x i8] c"h\00"
+; CHECK: @[[PERCENT_S:[a-zA-Z0-9_$"\\.-]+]] = constant [4 x i8] c"%s\0A\00"
+; CHECK: @[[FORMAT_STR:[a-zA-Z0-9_$"\\.-]+]] = constant [3 x i8] c"%s\00"
+; CHECK: @[[CHARSTR:[a-zA-Z0-9_$"\\.-]+]] = constant [2 x i8] c"a\00"
+; CHECK: @[[STR:[a-zA-Z0-9_$"\\.-]+]] = private unnamed_addr constant [12 x i8] c"hello world\00", align 1
+;.
 define void @test_simplify1() {
 ; CHECK-LABEL: @test_simplify1(
 ; CHECK-NEXT:    [[PUTCHAR:%.*]] = call i32 @putchar(i32 104)
@@ -56,3 +64,6 @@
   call void (i8*, ...) @printf(i8* %fmt, i8* %str)
   ret void
 }
+;.
+; CHECK: attributes #[[ATTR0:[0-9]+]] = { nofree nounwind }
+;.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101034.339598.patch
Type: text/x-patch
Size: 1382 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210422/cb3960b0/attachment.bin>


More information about the llvm-commits mailing list