Skip to content

Commit

Permalink
[InstCombine] auto-generate test CHECK lines; NFC
Browse files Browse the repository at this point in the history
The check line was not enabled until bfb1559,
and then it was excessive, so the test started failing.
  • Loading branch information
rotateright committed Feb 20, 2023
1 parent 4966d8e commit 36014a7
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions llvm/test/Transforms/InstCombine/2008-01-06-VoidCast.ll
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
; RUN: opt < %s -passes=instcombine -S | FileCheck %s

define void @f(i16 %y) {
; CHECK-LABEL: define {{[^@]+}}@f
; CHECK-SAME: (i16 [[Y:%.*]]) {
; CHECK-NEXT: ret void
;
ret void
}

define i32 @g(i32 %y) {
; CHECK-LABEL: @g(
; CHECK-NEXT: %x = call i32 @f(i32 %y) ; <i32> [#uses=1]
%x = call i32 @f( i32 %y ) ; <i32> [#uses=1]
; CHECK-LABEL: define {{[^@]+}}@g
; CHECK-SAME: (i32 [[Y:%.*]]) {
; CHECK-NEXT: [[X:%.*]] = call i32 @f(i32 [[Y]])
; CHECK-NEXT: ret i32 [[X]]
;
%x = call i32 @f( i32 %y )
ret i32 %x
}

0 comments on commit 36014a7

Please sign in to comment.